From f8627994eb4fa14735d53ea4801a08aeef06f635 Mon Sep 17 00:00:00 2001 From: Guillem Jover Date: Thu, 11 Feb 2016 10:26:57 +0100 Subject: [PATCH] Escape dots in file type check in check_dsc_files --- daklib/utils.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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',)), -- 2.39.5