workdirs: ensure the .yap directory exists in the new repo
authorSteven Walter <swalter@lpdev.prtdev.lexmark.com>
Fri, 14 Aug 2009 18:06:45 +0000 (14 14:06 -0400)
committerSteven Walter <swalter@lpdev.prtdev.lexmark.com>
Fri, 14 Aug 2009 18:06:45 +0000 (14 14:06 -0400)
plugins/workdir.py

index a2b51ab..7587b78 100644 (file)
@@ -15,7 +15,7 @@ class WorkdirPlugin(YapCore):
         repo = get_output('git rev-parse --git-dir')[0]
         dir = os.path.join(repo, 'yap', 'lock')
         try:
-            os.mkdir(dir)
+            os.makedirs(dir)
         except OSError:
             pass
 
@@ -30,7 +30,7 @@ class WorkdirPlugin(YapCore):
         repo = get_output('git rev-parse --git-dir')[0]
         dir = os.path.join(repo, 'yap', 'lock')
         try:
-            os.mkdir(dir)
+            os.makedirs(dir)
         except OSError:
             pass