diff options
author | Guido Günther <agx@sigxcpu.org> | 2009-07-03 16:15:24 +0200 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2009-07-03 16:15:24 +0200 |
commit | 5edecd9d672a0b607afaaebbc702ef6add5523a0 (patch) | |
tree | 9358163bd0694d23449fc89dd5da691793be42fd | |
parent | f80ee2e53ac73063e565659d0d05068868e838d4 (diff) | |
download | git-buildpackage-5edecd9d672a0b607afaaebbc702ef6add5523a0.tar.gz git-buildpackage-5edecd9d672a0b607afaaebbc702ef6add5523a0.tar.bz2 git-buildpackage-5edecd9d672a0b607afaaebbc702ef6add5523a0.zip |
+ is a valid character in version numbers
-rw-r--r-- | gbp/deb_utils.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gbp/deb_utils.py b/gbp/deb_utils.py index 9c5b32ed..d701eb4f 100644 --- a/gbp/deb_utils.py +++ b/gbp/deb_utils.py @@ -245,10 +245,12 @@ def guess_upstream_version(archive, version_regex=r''): '0A2d:rc1' >>> guess_upstream_version('git-1.tar.bz2') '1' + >>> guess_upstream_version('kvm_87+dfsg.orig.tar.gz') + '87+dfsg' >>> guess_upstream_version('foo-Bar_0.2.orig.tar.gz') >>> guess_upstream_version('foo-Bar-a.b.tar.gz') """ - version_chars = r'[a-zA-Z\d\.\~\-\:]' + version_chars = r'[a-zA-Z\d\.\~\-\:\+]' extensions = r'\.tar\.(gz|bz2)' version_filters = map ( lambda x: x % (version_chars, extensions), |