diff options
| author | Saul Wold <sgw@linux.intel.com> | 2014-01-24 11:25:00 -0800 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-01-28 00:52:37 +0000 |
| commit | 51cccb7fb9affe1cc056015633fc8eb6860ed48c (patch) | |
| tree | 2c68216152233aa3abaf0ca2f1a1e97a7782c940 /scripts | |
| parent | bede5a4180be0cbe29c4ee8b7ca53c47e822e4f1 (diff) | |
| download | poky-51cccb7fb9affe1cc056015633fc8eb6860ed48c.tar.gz | |
combo-layer: Make directories only if they don't exisit yet
(From OE-Core rev: 24188967209bad291545909ddb89af35ab3f6021)
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts')
| -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: |
