]> git.decadent.org.uk Git - dak.git/commitdiff
Allow *.asc to be part of source packages
authorAnsgar Burchardt <ansgar@debian.org>
Tue, 18 Aug 2015 20:20:06 +0000 (22:20 +0200)
committerAnsgar Burchardt <ansgar@debian.org>
Tue, 18 Aug 2015 20:20:06 +0000 (22:20 +0200)
The patch in 9a1cfa782b2147f017debea6819d71707ff5ab7d is not enough to
start accepting *.asc.

Bug: https://bugs.debian.org/759401

daklib/regexes.py

index 6a1acd828e6a7185ad825bfc092915c5cbec7995..21defe9394ef31529d92b4e14ce5c2cfe3dffc57 100644 (file)
@@ -135,11 +135,11 @@ re_file_dsc = re.compile(_re_file_prefix + r'\.dsc$')
 
 # Match other source files
 # Groups: package, version
-re_file_source = re.compile(_re_file_prefix + r'(?:(?:\.orig(?:-[a-zA-Z0-9-]+)?|\.debian)?\.tar\.(?:bz2|gz|xz)|\.diff\.gz)$')
+re_file_source = re.compile(_re_file_prefix + r'(?:(?:\.orig(?:-[a-zA-Z0-9-]+)?|\.debian)?\.tar\.(?:bz2|gz|xz)|\.diff\.gz|\.asc)$')
 
 # Match upstream tarball
 # Groups: package, version
-re_file_orig = re.compile(_re_file_prefix + r'\.orig(?:-[a-zA-Z0-9-]+)?\.tar\.(?:bz2|gz|xz)')
+re_file_orig = re.compile(_re_file_prefix + r'\.orig(?:-[a-zA-Z0-9-]+)?(?:\.tar\.(?:bz2|gz|xz)|\.asc)')
 
 ######################################################################
 # Patterns matching fields                                           #