[Checkins] SVN: z3c.recipe.mkdir/trunk/z3c/recipe/mkdir/__init__.py Update permissions of leaf dirs even if they exist already (on

Ulrich Fouquet cvs-admin at zope.org
Sun Jun 24 01:47:13 UTC 2012


Log message for revision 127054:
  Update permissions of leaf dirs even if they exist already (on
  updates, etc.).
  

Changed:
  U   z3c.recipe.mkdir/trunk/z3c/recipe/mkdir/__init__.py

-=-
Modified: z3c.recipe.mkdir/trunk/z3c/recipe/mkdir/__init__.py
===================================================================
--- z3c.recipe.mkdir/trunk/z3c/recipe/mkdir/__init__.py	2012-06-23 14:49:50 UTC (rev 127053)
+++ z3c.recipe.mkdir/trunk/z3c/recipe/mkdir/__init__.py	2012-06-24 01:47:09 UTC (rev 127054)
@@ -74,6 +74,9 @@
             raise zc.buildout.UserError(
                 "Cannot create directory: %s. It's a file." % path)
         if parent == path or os.path.exists(path):
+            if path in self.paths:
+                self.logger.info('set permissions for %s' % path)
+                self.setPermissions(path)
             return
         self.createIntermediatePaths(parent)
         os.mkdir(path)



More information about the checkins mailing list