summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Dauvergne <bdauvergne@entrouvert.com>2018-07-11 09:39:24 (GMT)
committerBenjamin Dauvergne <bdauvergne@entrouvert.com>2018-07-11 09:39:24 (GMT)
commite24084ff6c231669a7e802f677b65b1f97dfa738 (patch)
treeaff5408027b92076e632ea98442955398624b36d
parent6da7c8bb0580b16c89e392acf64352fc7cd94de5 (diff)
downloadeobuilder-e24084ff6c231669a7e802f677b65b1f97dfa738.zip
eobuilder-e24084ff6c231669a7e802f677b65b1f97dfa738.tar.gz
eobuilder-e24084ff6c231669a7e802f677b65b1f97dfa738.tar.bz2
eobuilder-ctl: fix parsing of debian versions containing more than one + (fixes #25203)
-rwxr-xr-xeobuilder-ctl2
1 files changed, 1 insertions, 1 deletions
diff --git a/eobuilder-ctl b/eobuilder-ctl
index 55328d6..3bb1915 100755
--- a/eobuilder-ctl
+++ b/eobuilder-ctl
@@ -223,7 +223,7 @@ def prepare_build(dist, project, cmd_options, new):
if last_version == project['version'] and new \
and "~eob" in last_debian_package_version:
- new_inc = int(last_debian_package_version.split('+')[1]) + 1
+ new_inc = int(last_debian_package_version.rsplit('+', 1)[-1]) + 1
version_suffix = "%s~eob%s+%s" % (debian_revision_number,
settings.DEBIAN_VERSIONS[dist],
new_inc)