X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fcruft_report.py;h=b200d7936a367bc5feb505aba11b5b1da2c34b63;hb=adcc4dcadd87c31ca52c4ec6b485375b56579e46;hp=21988dcd1d97aeb96c4a144b2df9ffb7183e2fa8;hpb=b8140e33e1e147818effa5d88996a044049ad8f6;p=dak.git diff --git a/dak/cruft_report.py b/dak/cruft_report.py index 21988dcd..b200d793 100755 --- a/dak/cruft_report.py +++ b/dak/cruft_report.py @@ -556,6 +556,9 @@ def main (): nfu_packages = {} suite = get_suite(Options["Suite"].lower(), session) + if not suite: + utils.fubar("Cannot find suite %s" % Options["Suite"].lower()) + suite_id = suite.suite_id suite_name = suite.suite_name.lower() @@ -571,7 +574,7 @@ def main (): bins_in_suite = get_suite_binaries(suite, session) # Checks based on the Sources files - components = cnf.ValueList("Suite::%s::Components" % (suite_name)) + components = get_component_names(session) for component in components: filename = "%s/dists/%s/%s/source/Sources.gz" % (cnf["Dir::Root"], suite_name, component) # apt_pkg.ParseTagFile needs a real file handle and can't handle a GzipFile instance...