eobuilder-ctl: fix parsing of debian versions containing more than one + (fixes #25203)

This commit is contained in:
Benjamin Dauvergne 2018-07-11 11:39:24 +02:00
parent 6da7c8bb05
commit e24084ff6c
1 changed files with 1 additions and 1 deletions

View File

@ -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)