[Checkins] SVN: lovely.recipe/trunk/ - make sure we don't fail if
the directory to create already exists
Juergen Kartnaller
juergen at kartnaller.at
Wed Jul 16 12:02:48 EDT 2008
Log message for revision 88413:
- make sure we don't fail if the directory to create already exists
Changed:
U lovely.recipe/trunk/CHANGES.txt
U lovely.recipe/trunk/setup.py
U lovely.recipe/trunk/src/lovely/recipe/fs/mkdir.py
-=-
Modified: lovely.recipe/trunk/CHANGES.txt
===================================================================
--- lovely.recipe/trunk/CHANGES.txt 2008-07-16 16:01:32 UTC (rev 88412)
+++ lovely.recipe/trunk/CHANGES.txt 2008-07-16 16:02:48 UTC (rev 88413)
@@ -8,6 +8,11 @@
BIG TODO: add tests for lovely.recipe.zeo and lovely.recipe.zope to test and
to show what this all is for.
+2008/07/16 0.3.1b7
+==================
+
+- make sure we don't fail if the directory to create already exists
+
2008/07/16 0.3.1b6
==================
Modified: lovely.recipe/trunk/setup.py
===================================================================
--- lovely.recipe/trunk/setup.py 2008-07-16 16:01:32 UTC (rev 88412)
+++ lovely.recipe/trunk/setup.py 2008-07-16 16:02:48 UTC (rev 88413)
@@ -13,7 +13,7 @@
setup (
name='lovely.recipe',
- version='0.3.1b6',
+ version='0.3.1b7',
author = "Lovely Systems",
author_email = "office at lovelysystems.com",
license = "ZPL 2.1",
Modified: lovely.recipe/trunk/src/lovely/recipe/fs/mkdir.py
===================================================================
--- lovely.recipe/trunk/src/lovely/recipe/fs/mkdir.py 2008-07-16 16:01:32 UTC (rev 88412)
+++ lovely.recipe/trunk/src/lovely/recipe/fs/mkdir.py 2008-07-16 16:02:48 UTC (rev 88413)
@@ -31,9 +31,10 @@
path, dirname)
raise zc.buildout.UserError('Invalid Path')
- logging.getLogger(self.name).info(
- 'Creating directory %s', self.originalPath)
- os.mkdir(path)
+ if not os.path.isdir(path):
+ logging.getLogger(self.name).info(
+ 'Creating directory %s', self.originalPath)
+ os.mkdir(path)
return ()
def update(self):
More information about the Checkins
mailing list