Commit 6e9193cb authored by Christos Stavrakakis's avatar Christos Stavrakakis
Browse files

Fix debian tag, remove ~

parent 4f3efe82
......@@ -257,7 +257,7 @@ def main():
# Commit Changes
repo.git.commit("-s", "-a", m="Bump version to %s" % debian_version)
# Tag debian branch
debian_branch_tag = "debian/" + debian_version
debian_branch_tag = "debian/" + utils.version_to_tag(debian_version)
if mode == "release":
repo.git.tag(debian_branch_tag)
......
......@@ -173,3 +173,7 @@ def get_branch_type(branch_name):
else:
btypestr = branch_name
return btypestr
def version_to_tag(version):
return version.replace("~", "")
......@@ -305,10 +305,11 @@ def debian_version_from_python_version(pyver):
def get_revision(version):
"""Find revision for a debian version"""
version_tag = utils.version_to_tag(version)
repo = utils.get_repository()
minor = 1
while True:
tag = "debian/" + version + "-" + str(minor)
tag = "debian/" + version_tag + "-" + str(minor)
if tag in repo.tags:
minor += 1
else:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment