diff options
author | Javier Jardón <jjardon@gnome.org> | 2017-06-20 15:35:53 +0000 |
---|---|---|
committer | Javier Jardón <jjardon@gnome.org> | 2017-06-20 15:35:53 +0000 |
commit | 16dc8907e16fadf02eab14263b7f41f91c9797f3 (patch) | |
tree | eb4b4ca2f13008079205465928d6b062d25159fb | |
parent | d0965e1da7b870632213147bc978575aaa1fbf62 (diff) | |
parent | cca75b0824b312ef50490c4cebfdee6184039b59 (diff) | |
download | ybd-16dc8907e16fadf02eab14263b7f41f91c9797f3.tar.gz |
Merge branch 'benbrown/rpm-chunks' into 'master'
Fix rpm generation from chunks
See merge request !368
-rw-r--r-- | ybd/sandbox.py | 7 |
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')): |