From: Joerg Jaspert Date: Tue, 8 Jan 2008 23:34:05 +0000 (+0100) Subject: Let NBS work for experimental too X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=c9673a9bb1ba44a4f09613b4df59b73ae5f9ca4d;p=dak.git Let NBS work for experimental too --- diff --git a/ChangeLog b/ChangeLog index 90c033a7..3cb970b2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-01-09 Joerg Jaspert + + * dak/cruft_report.py (main): Make it possible to look at + experimental too, especially NBS + 2008-01-07 Joerg Jaspert * dak/examine_package.py (check_deb): Remove linda call. It diff --git a/dak/cruft_report.py b/dak/cruft_report.py index 8571bcf4..8f72f419 100755 --- a/dak/cruft_report.py +++ b/dak/cruft_report.py @@ -36,6 +36,7 @@ import daklib.utils Cnf = None projectB = None +suite = "unstable" # Default suite_id = None no_longer_in_suite = {}; # Really should be static to add_nbs, but I'm lazy @@ -171,7 +172,7 @@ def do_nbs(real_nbs): print output print "Suggested command:" - print " dak rm -m \"[auto-cruft] NBS\" -b %s" % (" ".join(nbs_to_remove)) + print " dak rm -m \"[auto-cruft] NBS\" -s %s -b %s" % (suite, " ".join(nbs_to_remove)) print ################################################################################ @@ -244,7 +245,7 @@ def do_obsolete_source(duplicate_bins, bin2source): ################################################################################ def main (): - global Cnf, projectB, suite_id, source_binaries, source_versions + global Cnf, projectB, suite, suite_id, source_binaries, source_versions Cnf = daklib.utils.get_conf() @@ -351,7 +352,11 @@ def main (): os.unlink(temp_filename) # Checks based on the Packages files - for component in components + ['main/debian-installer']: + check_components = components[:] + if suite != "experimental": + check_components.append('main/debian-installer'); + for component in check_components: + print component architectures = filter(daklib.utils.real_arch, Cnf.ValueList("Suite::%s::Architectures" % (suite))) for architecture in architectures: filename = "%s/dists/%s/%s/binary-%s/Packages.gz" % (Cnf["Dir::Root"], suite, component, architecture)