Skip to content
This repository has been archived by the owner on Apr 24, 2019. It is now read-only.

Commit

Permalink
- make sure we don't fail if the directory to create already exists
Browse files Browse the repository at this point in the history
  • Loading branch information
jukart committed Jul 16, 2008
1 parent a01dd28 commit 598c18f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
5 changes: 5 additions & 0 deletions CHANGES.txt
Expand Up @@ -8,6 +8,11 @@ After
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
==================

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -13,7 +13,7 @@

setup (
name='lovely.recipe',
version='0.3.1b6',
version='0.3.1b7',
author = "Lovely Systems",
author_email = "office@lovelysystems.com",
license = "ZPL 2.1",
Expand Down
7 changes: 4 additions & 3 deletions src/lovely/recipe/fs/mkdir.py
Expand Up @@ -31,9 +31,10 @@ def install(self):
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):
Expand Down

0 comments on commit 598c18f

Please sign in to comment.