aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2009-04-07 14:28:00 +0200
committerGuido Günther <agx@sigxcpu.org>2009-04-07 14:28:00 +0200
commitd113a3b61f345caf66d8a439e0dc709ee4ae5c82 (patch)
treeac1b3eae5d6534f8dd1b9a0b9b65604402042145
parenteaacadf284577440ce043571a5d7963e74ac36d9 (diff)
let the version detection patter match debian policy
Closes: #522888
-rwxr-xr-xgit-import-orig4
1 files changed, 2 insertions, 2 deletions
diff --git a/git-import-orig b/git-import-orig
index 67090e9..26c9bef 100755
--- a/git-import-orig
+++ b/git-import-orig
@@ -86,9 +86,9 @@ def guess_version(archive, version_regex=r''):
@version_regex: additional version regex to apply, needs a 'version' group
"""
version_filters = [ # Debian package_<version>.orig.tar.gz:
- r'^[a-z\d\-]+_(?P<version>[a-z\d\.\~\-]+)\.orig\.tar\.(gz|bz2)',
+ r'^[a-z\d\.\+\-]+_(?P<version>[a-z\d\.\~\-]+)\.orig\.tar\.(gz|bz2)',
# Upstream package-<version>.tar.gz:
- r'^[a-z\d\-]+-(?P<version>[a-z\d\.]+)\.tar\.(gz|bz2)' ]
+ r'^[a-z\d\.\+\-]+-(?P<version>[a-z\d\.]+)\.tar\.(gz|bz2)' ]
if version_regex:
version_filters = version_regex + version_filters
for filter in version_filters: