From ed9f6be584d448d1705ee02e18ca134fc6aab450 Mon Sep 17 00:00:00 2001 From: Joachim Breitner Date: Tue, 5 Aug 2008 12:36:46 -0300 Subject: [PATCH] Warn about missing wanna-build dumps armel is actually available, but the script should still not fail for missing wanna build dumps, but print warnings. --- dak/cruft_report.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dak/cruft_report.py b/dak/cruft_report.py index 07b0551b..058c3d45 100755 --- a/dak/cruft_report.py +++ b/dak/cruft_report.py @@ -153,7 +153,8 @@ def parse_nfu(architecture): filename = "%s/%s-all.txt" % (Cnf["Cruft-Report::Options::Wanna-Build-Dump"], architecture) - # Not all architectures have a wanna-build dump, for example armel at the time of writing + # Not all architectures may have a wanna-build dump, so we want to ignore missin + # files if os.path.exists(filename): f = utils.open_file(filename) for line in f: @@ -165,6 +166,8 @@ def parse_nfu(architecture): ret.add(m.group(1)) f.close() + else: + warn("No wanna-build dump file for architecture %s", architecture) return ret ################################################################################ -- 2.39.5