summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorSaul Wold <sgw@linux.intel.com>2014-01-24 11:25:00 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-01-28 00:48:29 +0000
commit24188967209bad291545909ddb89af35ab3f6021 (patch)
tree0fb96955329bffe0f596e1b651924d7cfb9114c3 /scripts
parenta2a77730f28decfd2448bcda68280174b55cf54c (diff)
downloadopenembedded-core-24188967209bad291545909ddb89af35ab3f6021.tar.gz
openembedded-core-24188967209bad291545909ddb89af35ab3f6021.tar.bz2
openembedded-core-24188967209bad291545909ddb89af35ab3f6021.zip
combo-layer: Make directories only if they don't exisit yet
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/combo-layer6
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):
dest_dir = repo['dest_dir']
if dest_dir and dest_dir != ".":
extract_dir = os.path.join(os.getcwd(), dest_dir)
- os.makedirs(extract_dir)
+ if not os.path.exists(extract_dir):
+ os.makedirs(extract_dir)
else:
extract_dir = os.getcwd()
file_filter = repo.get('file_filter', "")
@@ -354,7 +355,8 @@ def action_update(conf, args):
import uuid
patch_dir = "patch-%s" % uuid.uuid4()
- os.mkdir(patch_dir)
+ if not os.path.exists(patch_dir):
+ os.mkdir(patch_dir)
# Step 1: update the component repos
if conf.nopull: