diff options
-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')): |