[py-svn] r6899 - py/dist/py/path/local

hpk at codespeak.net hpk at codespeak.net
Sun Oct 10 23:09:17 CEST 2004


Author: hpk
Date: Sun Oct 10 23:09:17 2004
New Revision: 6899

Modified:
   py/dist/py/path/local/_posix.py
Log:
fix recursively chowning


Modified: py/dist/py/path/local/_posix.py
==============================================================================
--- py/dist/py/path/local/_posix.py	(original)
+++ py/dist/py/path/local/_posix.py	Sun Oct 10 23:09:17 2004
@@ -61,9 +61,8 @@
         try:
             if rec:
                 for x in self.visit(rec=py.path.checker(link=0)):
-                    os.chown(str(self), uid, gid) 
-            else:
-                os.chown(str(self), uid, gid) 
+                    os.chown(str(x), uid, gid) 
+            os.chown(str(self), uid, gid) 
         except:
             self._except(sys.exc_info())
 



More information about the pytest-commit mailing list