aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGuido Guenther <agx@sigxcpu.org>2006-10-09 13:45:02 +0200
committerGuido Guenther <agx@bogon.sigxcpu.org>2006-10-09 13:45:02 +0200
commit35d92639e80cb5cb3da3f84c5b6cafaaac44dd04 (patch)
tree00c1ae096ef1f77ffc5d851abdf01aa999364407
parent9eb31044a79cdb054dc562910d024cd8bc5098d9 (diff)
sanitze_version: strip of epochs
-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: