diff options
-rwxr-xr-x | scripts/combo-layer | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/combo-layer b/scripts/combo-layer index ae97471d6d..9da1d3a89e 100755 --- a/scripts/combo-layer +++ b/scripts/combo-layer | |||
@@ -194,7 +194,8 @@ def action_init(conf, args): | |||
194 | dest_dir = repo['dest_dir'] | 194 | dest_dir = repo['dest_dir'] |
195 | if dest_dir and dest_dir != ".": | 195 | if dest_dir and dest_dir != ".": |
196 | extract_dir = os.path.join(os.getcwd(), dest_dir) | 196 | extract_dir = os.path.join(os.getcwd(), dest_dir) |
197 | os.makedirs(extract_dir) | 197 | if not os.path.exists(extract_dir): |
198 | os.makedirs(extract_dir) | ||
198 | else: | 199 | else: |
199 | extract_dir = os.getcwd() | 200 | extract_dir = os.getcwd() |
200 | file_filter = repo.get('file_filter', "") | 201 | file_filter = repo.get('file_filter', "") |
@@ -354,7 +355,8 @@ def action_update(conf, args): | |||
354 | 355 | ||
355 | import uuid | 356 | import uuid |
356 | patch_dir = "patch-%s" % uuid.uuid4() | 357 | patch_dir = "patch-%s" % uuid.uuid4() |
357 | os.mkdir(patch_dir) | 358 | if not os.path.exists(patch_dir): |
359 | os.mkdir(patch_dir) | ||
358 | 360 | ||
359 | # Step 1: update the component repos | 361 | # Step 1: update the component repos |
360 | if conf.nopull: | 362 | if conf.nopull: |