]> git.decadent.org.uk Git - dak.git/commitdiff
Also allow '-' in suffix of .buildinfo files
authorAnsgar Burchardt <ansgar@debian.org>
Thu, 31 Dec 2015 11:31:56 +0000 (12:31 +0100)
committerAnsgar Burchardt <ansgar@debian.org>
Thu, 31 Dec 2015 11:31:56 +0000 (12:31 +0100)
This matches what we allow to be used for .changes files in
re_file_changes.

daklib/regexes.py

index 8b548ce96259ee7d056439fe8d380869cccbc3cb..40b4a74132c284657f330a9ad3b8ce2d7fc0e0e3 100644 (file)
@@ -143,7 +143,7 @@ re_file_orig = re.compile(_re_file_prefix + r'\.orig(?:-[a-zA-Z0-9-]+)?(?:\.tar\
 
 # Match buildinfo file
 # Groups: package, version, suffix
-re_file_buildinfo = re.compile(_re_file_prefix + r'_(?P<suffix>[a-zA-Z0-9+]+)\.buildinfo$')
+re_file_buildinfo = re.compile(_re_file_prefix + r'_(?P<suffix>[a-zA-Z0-9+-]+)\.buildinfo$')
 
 ######################################################################
 # Patterns matching fields                                           #