From: Guillem Jover Date: Thu, 11 Feb 2016 09:26:57 +0000 (+0100) Subject: Escape dots in file type check in check_dsc_files X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=f8627994eb4fa14735d53ea4801a08aeef06f635;p=dak.git Escape dots in file type check in check_dsc_files --- diff --git a/daklib/utils.py b/daklib/utils.py index 5ac015cd..1b878e22 100644 --- a/daklib/utils.py +++ b/daklib/utils.py @@ -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',)),