From: Ansgar Burchardt Date: Fri, 31 May 2013 08:07:39 +0000 (+0200) Subject: daklib/archive.py: extension is optional for byhand rules X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=d0e97f0b0f1a35690a7bd789e70e04d5da616efd;p=dak.git daklib/archive.py: extension is optional for byhand rules --- diff --git a/daklib/archive.py b/daklib/archive.py index ecd59324..81719a87 100644 --- a/daklib/archive.py +++ b/daklib/archive.py @@ -1076,7 +1076,9 @@ class ArchiveUpload(object): remaining.append(f) continue - if rule['Source'] != self.changes.source_name or rule['Section'] != f.section or rule['Extension'] != ext: + if rule['Source'] != self.changes.source_name \ + or rule['Section'] != f.section \ + or ('Extension' in rule and rule['Extension'] != ext): remaining.append(f) continue