summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2018-09-09 17:57:26 +0300
committerLars Wirzenius <liw@liw.fi>2018-09-09 17:57:26 +0300
commit4ba6b46206a03bf6815d46cff12cfb0c2033795c (patch)
tree7dae57d84b514892db3c6f9736f5213558af36e8
parent5bf763c7954f47dd21015341c24ccc4b688c0b09 (diff)
downloadick-helpers-4ba6b46206a03bf6815d46cff12cfb0c2033795c.tar.gz
Fix: append .distribution only in one place
-rw-r--r--ick_helpers.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/ick_helpers.py b/ick_helpers.py
index b363b45..b1c9e2f 100644
--- a/ick_helpers.py
+++ b/ick_helpers.py
@@ -190,11 +190,9 @@ class DebianBuilderBase:
env = dict(os.environ)
env['DEBFULLNAME'] = self.debfullname
env['DEBEMAIL'] = self.debemail
- newver = '{}.{}'.format(version.full, distribution)
- debug('newver:', newver)
msg = 'Build in ick.'
self.ex.run(
- 'dch', '--no-conf', '-v', newver, '-D', distribution,
+ 'dch', '--no-conf', '-v', str(version), '-D', distribution,
'--force-distribution', msg, env=env)
self.ex.run('dch', '--no-conf', '-r', '', env=env)
@@ -222,6 +220,9 @@ class DebianReleaseBuilder(DebianBuilderBase):
version = self.get_version()
curdist = self.get_distribution()
+ morever = '.{}'.format(distribution)
+ version.upstream_append(morever)
+
orig_tarball = self.create_debian_orig_tarball(
upstream_tarball, source, version)