]> err.no Git - dak/commitdiff
daklib/archive.py: extension is optional for byhand rules
authorAnsgar Burchardt <ansgar@debian.org>
Fri, 31 May 2013 08:07:39 +0000 (10:07 +0200)
committerAnsgar Burchardt <ansgar@debian.org>
Fri, 31 May 2013 08:07:39 +0000 (10:07 +0200)
daklib/archive.py

index ecd5932494d14a88ea761a094bbb37ff6e613acd..81719a8731871ef2a4e24903328f518d80774f57 100644 (file)
@@ -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