aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2017-01-07 18:28:10 +0100
committerGuido Günther <agx@sigxcpu.org>2017-01-07 18:28:10 +0100
commit42ee784640f09c2937e2b8e1d29b0130a6c1846f (patch)
treebeefec6d9b1ce1dc550e5107eff304ce82c00548
parentede603e73a49eca2af2460c0a300a5cfdf83a785 (diff)
buildpackage: print proper dist when using sid
We're setting the dist to empty in this case since git-pbuilder will the use either base.cow or base-sid.cow but we should print a proper dist to the user.
-rwxr-xr-xgbp/scripts/buildpackage.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/gbp/scripts/buildpackage.py b/gbp/scripts/buildpackage.py
index 43c5da4..4cc8784 100755
--- a/gbp/scripts/buildpackage.py
+++ b/gbp/scripts/buildpackage.py
@@ -444,7 +444,8 @@ def setup_pbuilder(options, repo, native):
options.cleaner = '/bin/true'
dist = get_pbuilder_dist(options, repo, native)
- pbd_env['GBP_PBUILDER_DIST'] = pbd_env['DIST'] = pr_dist = dist
+ pbd_env['GBP_PBUILDER_DIST'] = pbd_env['DIST'] = dist
+ pr_dist = dist or 'sid'
if options.pbuilder_arch:
arch = options.pbuilder_arch
pbd_env['GBP_PBUILDER_ARCH'] = pbd_env['ARCH'] = arch