]> git.decadent.org.uk Git - dak.git/commitdiff
dak show-new: use new regex to cope with all source files extensions
authorRaphaël Hertzog <hertzog@debian.org>
Tue, 27 Oct 2009 00:29:52 +0000 (01:29 +0100)
committerRaphaël Hertzog <hertzog@debian.org>
Tue, 27 Oct 2009 00:29:52 +0000 (01:29 +0100)
Signed-off-by: Raphael Hertzog <hertzog@debian.org>
dak/show_new.py

index be3d51147130f83675dd2cdbe70b681425e32393..b21efcce43ac336797034dc84bcdf2743bcc15c2 100755 (executable)
@@ -32,6 +32,7 @@ import examine_package
 
 from daklib.queue import determine_new, check_valid
 from daklib import utils
+from daklib.regexes import re_source_ext
 
 # Globals
 Cnf = None
@@ -160,8 +161,9 @@ def do_pkg(changes_file):
         filestoexamine = []
         for pkg in new.keys():
             for fn in new[pkg]["files"]:
-                if ( c.files[fn].has_key("new") and not
-                     c.files[fn]["type"] in [ "orig.tar.gz", "orig.tar.bz2", "tar.gz", "tar.bz2", "diff.gz", "diff.bz2"] ):
+                if (c.files[fn].has_key("new") and
+                    (c.files[fn]["type"] == "dsc" or
+                     not re_source_ext.match(c.files[fn]["type"]))):
                     filestoexamine.append(fn)
 
         html_header(c.changes["source"], filestoexamine)