aboutsummaryrefslogtreecommitdiff
path: root/git_buildpackage/git_utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'git_buildpackage/git_utils.py')
-rw-r--r--git_buildpackage/git_utils.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/git_buildpackage/git_utils.py b/git_buildpackage/git_utils.py
index 9100abbb..089e58a5 100644
--- a/git_buildpackage/git_utils.py
+++ b/git_buildpackage/git_utils.py
@@ -34,6 +34,8 @@ def is_repository(path):
def sanitize_version(version):
"""sanitize a version so git accepts it as a tag"""
+ if ':' in version: # strip of any epochs
+ version=version.split(':',1)[1]
return version.replace('~','.')
# vim:et:ts=4:sw=4: