summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJavier Jardón <jjardon@gnome.org>2017-06-20 15:35:53 +0000
committerJavier Jardón <jjardon@gnome.org>2017-06-20 15:35:53 +0000
commit16dc8907e16fadf02eab14263b7f41f91c9797f3 (patch)
treeeb4b4ca2f13008079205465928d6b062d25159fb
parentd0965e1da7b870632213147bc978575aaa1fbf62 (diff)
parentcca75b0824b312ef50490c4cebfdee6184039b59 (diff)
downloadybd-16dc8907e16fadf02eab14263b7f41f91c9797f3.tar.gz
Merge branch 'benbrown/rpm-chunks' into 'master'
Fix rpm generation from chunks See merge request !368
-rw-r--r--ybd/sandbox.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/ybd/sandbox.py b/ybd/sandbox.py
index fe8073c..fe72b07 100644
--- a/ybd/sandbox.py
+++ b/ybd/sandbox.py
@@ -18,6 +18,7 @@
import sandboxlib
import contextlib
import os
+import errno
import pipes
import shutil
import stat
@@ -78,7 +79,11 @@ def install(dn, component, subdir=None):
destdir = dn['sandbox']
else:
destdir = os.path.join(dn['sandbox'], subdir)
- os.mkdir(destdir)
+ try:
+ os.mkdir(destdir)
+ except OSError as e:
+ if e.errno == errno.EEXIST:
+ pass
# populate destdir with the artifact files from component
if os.path.exists(os.path.join(destdir, 'baserock',
component['name'] + '.meta')):