]> git.decadent.org.uk Git - dak.git/commitdiff
daklib/regexes.py: re_file_binary: arch names can have dashes
authorAnsgar Burchardt <ansgar@debian.org>
Sun, 8 Jul 2012 20:55:03 +0000 (14:55 -0600)
committerAnsgar Burchardt <ansgar@debian.org>
Fri, 13 Jul 2012 16:43:17 +0000 (10:43 -0600)
daklib/regexes.py

index b734e9fa93ff81ce875e9db64845b19e3971e90f..a8107113ecd54257ec7a72f922fe8828d8e6f7a5 100755 (executable)
@@ -145,7 +145,7 @@ _re_file_prefix = r'^(?P<package>[a-z0-9][a-z0-9.+-]+)_(?P<version>[A-Za-z0-9.:~
 
 # Match binary packages
 # Groups: package, version, architecture, type
-re_file_binary = re.compile(_re_file_prefix + r'_(?P<architecture>[a-z0-9]+)\.(?P<type>u?deb)$')
+re_file_binary = re.compile(_re_file_prefix + r'_(?P<architecture>[a-z0-9-]+)\.(?P<type>u?deb)$')
 
 # Match changes files
 # Groups: package, version, suffix