aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2017-01-09 19:36:00 +0100
committerGuido Günther <agx@sigxcpu.org>2017-01-09 19:36:00 +0100
commit783c1d5c7b9e0f152509b9a472a007444effda65 (patch)
tree353e9275fe29d2f74fc25d83865dc4ae1362177f
parentc57df33c229510de04dd3742c36e55ab022acc52 (diff)
buildpackage: simplify export dir selection
-rwxr-xr-xgbp/scripts/buildpackage.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/gbp/scripts/buildpackage.py b/gbp/scripts/buildpackage.py
index 4cc8784..d431c4c 100755
--- a/gbp/scripts/buildpackage.py
+++ b/gbp/scripts/buildpackage.py
@@ -228,10 +228,7 @@ def source_vfs(repo, options, tree):
def prepare_output_dir(dir):
"""Prepare the directory where the build result will be put"""
- output_dir = dir
- if not dir:
- output_dir = '..'
- output_dir = os.path.abspath(output_dir)
+ output_dir = os.path.abspath(dir or '..')
try:
os.mkdir(output_dir)