From 2ef9fe8dcf09a9be5e0119f4f7687ceb664f59cf Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Hertzog?= Date: Tue, 27 Oct 2009 01:29:52 +0100 Subject: [PATCH] dak show-new: use new regex to cope with all source files extensions Signed-off-by: Raphael Hertzog --- dak/show_new.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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) -- 2.39.5