diff options
author | Guido Günther <agx@sigxcpu.org> | 2012-04-12 23:03:21 +0200 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2012-04-12 23:03:21 +0200 |
commit | 407dfa157d8fabca4dac89e207b713503d594c1d (patch) | |
tree | 9a11c04ae97f3815fe6fb0111fe2af339773a0d0 | |
parent | 43e3a60fc28a8f919f5cb317ca745b3a7b82c759 (diff) |
Make the upstream version check match policy
Closes: #668554
-rw-r--r-- | gbp/deb/__init__.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gbp/deb/__init__.py b/gbp/deb/__init__.py index 75d39d34..50ce3f33 100644 --- a/gbp/deb/__init__.py +++ b/gbp/deb/__init__.py @@ -38,10 +38,10 @@ debian_version_chars = 'a-zA-Z\d.~+-' # must consist only of lower case letters (a-z), digits (0-9), plus (+) # and minus (-) signs, and periods (.). They must be at least two # characters long and must start with an alphanumeric character." -packagename_re = re.compile("^[a-z0-9][a-z0-9\.\+\-]+$") +packagename_re = re.compile("^[a-zA-Z0-9][a-zA-Z0-9\.\+\-~]+$") packagename_msg = """Package names must be at least two characters long, start with an -alphanumeric and can only containg lower case letters (a-z), digits -(0-9), plus signs (+), minus signs (-), and periods (.)""" +alphanumeric and can only containg letters (a-z,A-Z), digits +(0-9), plus signs (+), minus signs (-), periods (.) and hyphens (~)""" # Valid upstream versions according to Debian Policy Manual 5.6.12: # "The upstream_version may contain only alphanumerics[32] and the |