summaryrefslogtreecommitdiff
path: root/lorry
diff options
context:
space:
mode:
authorKyle Mckay <kyle.mckay@codethink.co.uk>2021-12-29 10:43:47 +0000
committerKyle Mckay <kyle.mckay@codethink.co.uk>2021-12-29 10:43:47 +0000
commitd5baa6cd74289c195c577ce1606a83cfa7ff95a1 (patch)
tree46ebfff4c798d783147b8c6c11228d8d8f6df68a /lorry
parent4af0db1598f5a16fa6b093a037c593017a09b21c (diff)
downloadlorry-d5baa6cd74289c195c577ce1606a83cfa7ff95a1.tar.gz
Create tarball dest only when needed
Diffstat (limited to 'lorry')
-rwxr-xr-xlorry3
1 files changed, 2 insertions, 1 deletions
diff --git a/lorry b/lorry
index 6811a7c..3e7135e 100755
--- a/lorry
+++ b/lorry
@@ -249,7 +249,8 @@ class Lorry(cliapp.Application):
self.settings[setting_name] = full_path
ensure_path_exists('working-area')
- ensure_path_exists('tarball-dest')
+ if self.settings['tarball'] != 'never':
+ ensure_path_exists('tarball-dest')
urllib.request.install_opener(
urllib.request.build_opener(SimpleFTPHandler))