From: Raphaƫl Hertzog Date: Tue, 27 Oct 2009 00:29:52 +0000 (+0100) Subject: dak show-new: use new regex to cope with all source files extensions X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2ef9fe8dcf09a9be5e0119f4f7687ceb664f59cf;p=dak dak show-new: use new regex to cope with all source files extensions Signed-off-by: Raphael Hertzog --- diff --git a/dak/show_new.py b/dak/show_new.py index be3d5114..b21efcce 100755 --- a/dak/show_new.py +++ b/dak/show_new.py @@ -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)