aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--debian/changelog3
-rw-r--r--git_buildpackage/git_utils.py2
2 files changed, 4 insertions, 1 deletions
diff --git a/debian/changelog b/debian/changelog
index 20268743..95b80f7e 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,9 +1,10 @@
git-buildpackage (0.2.8) git-buildpackage; urgency=low
* UNRELEASED
+ * sanitze_version: strip of epochs
* minor cosmetic cleanups all over the place
- -- Guido Guenther <agx@sigxcpu.org> Fri, 6 Oct 2006 23:13:05 +0200
+ -- Guido Guenther <agx@sigxcpu.org> Mon, 9 Oct 2006 12:53:22 +0200
git-buildpackage (0.2.7) git-buildpackage; urgency=low
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: