]> err.no Git - dak/commitdiff
daklib/regexes.py: re_field_source: fix matching version numbers
authorAnsgar Burchardt <ansgar@debian.org>
Sun, 8 Jul 2012 19:53:58 +0000 (13:53 -0600)
committerAnsgar Burchardt <ansgar@debian.org>
Fri, 13 Jul 2012 16:43:17 +0000 (10:43 -0600)
daklib/regexes.py

index 202aa57005045ac86d10073d02013d75505b1796..b734e9fa93ff81ce875e9db64845b19e3971e90f 100755 (executable)
@@ -180,4 +180,4 @@ re_field_version_upstream = re.compile(r'^(?:[0-9]+:)?(?P<upstream>.*)-[^-]*$')
 
 # Match source field
 # Groups: package, version
-re_field_source = re.compile(r'^(?P<package>[a-z0-9][a-z0-9.+-]+)(:?\s*\((?P<version>[A-Za-z0-9.:~+-])\))?')
+re_field_source = re.compile(r'^(?P<package>[a-z0-9][a-z0-9.+-]+)(?:\s*\((?P<version>[A-Za-z0-9.:~+-]+)\))?$')