diff options
author | Guido Günther <agx@sigxcpu.org> | 2017-01-09 19:36:00 +0100 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2017-01-09 19:36:00 +0100 |
commit | 783c1d5c7b9e0f152509b9a472a007444effda65 (patch) | |
tree | 353e9275fe29d2f74fc25d83865dc4ae1362177f /gbp/scripts/buildpackage.py | |
parent | c57df33c229510de04dd3742c36e55ab022acc52 (diff) |
buildpackage: simplify export dir selection
Diffstat (limited to 'gbp/scripts/buildpackage.py')
-rwxr-xr-x | gbp/scripts/buildpackage.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/gbp/scripts/buildpackage.py b/gbp/scripts/buildpackage.py index 4cc87847..d431c4cf 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) |