]> git.decadent.org.uk Git - dak.git/commitdiff
Escape dots in file type check in check_dsc_files
authorGuillem Jover <guillem@debian.org>
Thu, 11 Feb 2016 09:26:57 +0000 (10:26 +0100)
committerAnsgar Burchardt <ansgar@debian.org>
Tue, 12 Apr 2016 06:39:39 +0000 (08:39 +0200)
daklib/utils.py

index 5ac015cd0864398d5e1f99ad71a27fb4547aaf0f..1b878e22d9853eb500cff06c428889533afdd1d5 100644 (file)
@@ -311,9 +311,9 @@ def check_dsc_files(dsc_filename, dsc, dsc_files):
     has = defaultdict(lambda: 0)
 
     ftype_lookup = (
-        (r'orig.tar.gz',               ('orig_tar_gz', 'orig_tar')),
-        (r'diff.gz',                   ('debian_diff',)),
-        (r'tar.gz',                    ('native_tar_gz', 'native_tar')),
+        (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)',    ('orig_tar',)),
         (r'orig\.tar\.(gz|bz2|xz)\.asc', ('orig_tar_sig',)),