X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fcruft_report.py;h=4541bf6eb6477c8c09cc91022b8c41636d031ebc;hb=b2cd3d45ab3962eb4a2ccbefd3882654217a184c;hp=63374859fa8019a10165ec318dea5cea14c38ce2;hpb=add275e4b0d5b93fbc7774078d1d7e9dcbb66de9;p=dak.git diff --git a/dak/cruft_report.py b/dak/cruft_report.py index 63374859..4541bf6e 100755 --- a/dak/cruft_report.py +++ b/dak/cruft_report.py @@ -92,8 +92,9 @@ def do_anais(architecture, binaries_list, source, session): WHERE ba.suite = :suiteid AND ba.bin = b.id AND b.architecture = a.id AND b.package = :package""", {'suiteid': suite_id, 'package': binary}) + ql = q.fetchall() versions = [] - for i in q.fetchall(): + for i in ql: arch = i[0] version = i[1] if architectures.has_key(arch): @@ -357,9 +358,9 @@ def main (): # Set up checks based on mode if Options["Mode"] == "daily": - checks = [ "nbs", "nviu", "obsolete source" ] + checks = [ "nbs", "nviu", "nvit", "obsolete source" ] elif Options["Mode"] == "full": - checks = [ "nbs", "nviu", "obsolete source", "nfu", "dubious nbs", "bnb", "bms", "anais" ] + checks = [ "nbs", "nviu", "nvit", "obsolete source", "nfu", "dubious nbs", "bnb", "bms", "anais" ] else: utils.warn("%s is not a recognised mode - only 'full' or 'daily' are understood." % (Options["Mode"])) usage(1) @@ -520,6 +521,9 @@ def main (): if "nviu" in checks: do_newer_version('unstable', 'experimental', 'NVIU', session) + if "nvit" in checks: + do_newer_version('testing', 'testing-proposed-updates', 'NVIT', session) + if "nbs" in checks: do_nbs(real_nbs)