rpms/libselinux/devel libselinux-rhat.patch,1.172,1.173

Luke Macken lmacken at fedoraproject.org
Tue Nov 18 21:25:11 UTC 2008


Author: lmacken

Update of /cvs/pkgs/rpms/libselinux/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv17375

Modified Files:
	libselinux-rhat.patch 
Log Message:
Fix a typo in the restorecon method, and import the stat module.


libselinux-rhat.patch:

Index: libselinux-rhat.patch
===================================================================
RCS file: /cvs/pkgs/rpms/libselinux/devel/libselinux-rhat.patch,v
retrieving revision 1.172
retrieving revision 1.173
diff -u -r1.172 -r1.173
--- libselinux-rhat.patch	17 Nov 2008 20:26:34 -0000	1.172
+++ libselinux-rhat.patch	18 Nov 2008 21:25:09 -0000	1.173
@@ -164,7 +164,7 @@
  
 +%pythoncode %{
 +
-+import shutil, os
++import shutil, os, stat
 +
 +def restorecon(path, recursive=False):
 +    """ Restore SELinux context on a given path """
@@ -175,7 +175,7 @@
 +        if recursive:
 +            os.path.walk(path, lambda arg, dirname, fnames:
 +                             map(restorecon, [os.path.join(dirname, fname)
-+                              s                for fname in fnames]), None)
++                                              for fname in fnames]), None)
 +
 +def copytree(src, dest):
 +    """ An SELinux-friendly shutil.copytree method """




More information about the scm-commits mailing list