summaryrefslogtreecommitdiff
path: root/kbas
diff options
context:
space:
mode:
authorPaul Sherwood <paul.sherwood@codethink.co.uk>2016-01-25 18:09:34 +0000
committerPaul Sherwood <paul.sherwood@codethink.co.uk>2016-01-25 18:09:34 +0000
commite83f5324a18f8a006f8afc0e9afa43ff9479e983 (patch)
tree5ba7de6b0e1aa48e364f0dd613aed5628da727bd /kbas
parentf0a13c0caa36f3c55f37347ea023489eb439d960 (diff)
downloadybd-e83f5324a18f8a006f8afc0e9afa43ff9479e983.tar.gz
fix untar check, as spotted by locallycompact
Diffstat (limited to 'kbas')
-rwxr-xr-xkbas/__main__.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/kbas/__main__.py b/kbas/__main__.py
index e8b49b0..e7f6c70 100755
--- a/kbas/__main__.py
+++ b/kbas/__main__.py
@@ -127,6 +127,7 @@ class KeyedBinaryArtifactServer(object):
artifact = os.path.join(tmpdir, cache_id)
upload.save(artifact)
unpackdir = artifact + '.unpacked'
+ os.makedirs(unpackdir)
if call(['tar', 'xf', artifact, '--directory', unpackdir]):
app.log(this, 'ERROR: Problem unpacking', artifact)
raise