From: Joachim Breitner Date: Tue, 5 Aug 2008 15:36:46 +0000 (-0300) Subject: Warn about missing wanna-build dumps X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ed9f6be584d448d1705ee02e18ca134fc6aab450;p=dak 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. --- 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 ################################################################################