]> git.decadent.org.uk Git - dak.git/commitdiff
Move more specific source file regexes before general ones, again
authorJulien Cristau <jcristau@debian.org>
Fri, 20 May 2016 06:31:03 +0000 (08:31 +0200)
committerJulien Cristau <jcristau@debian.org>
Fri, 20 May 2016 06:31:03 +0000 (08:31 +0200)
Otherwise foo.orig.tar.gz.asc matches orig_tar before it has a change to
be matched against orig_tar_sig.

Signed-off-by: Julien Cristau <jcristau@debian.org>
daklib/utils.py

index 6e7fc06992fb3ad23ee136371fc47bff59d33e79..5e9c9b94617d3ff39722f2b7533c72a90846e3e7 100644 (file)
@@ -307,11 +307,11 @@ def check_dsc_files(dsc_filename, dsc, dsc_files):
     has = defaultdict(lambda: 0)
 
     ftype_lookup = (
+        (r'orig\.tar\.(gz|bz2|xz)\.asc', ('orig_tar_sig',)),
         (r'orig\.tar\.gz',             ('orig_tar_gz', 'orig_tar')),
         (r'diff\.gz',                  ('debian_diff',)),
         (r'tar\.gz',                   ('native_tar_gz', 'native_tar')),
         (r'debian\.tar\.(gz|bz2|xz)',  ('debian_tar',)),
-        (r'orig\.tar\.(gz|bz2|xz)\.asc', ('orig_tar_sig',)),
         (r'orig\.tar\.(gz|bz2|xz)',    ('orig_tar',)),
         (r'tar\.(gz|bz2|xz)',          ('native_tar',)),
         (r'orig-.+\.tar\.(gz|bz2|xz)\.asc', ('more_orig_tar_sig',)),