X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fcruft_report.py;h=a960a686717cbedf881d07317cad2078e08aa4ab;hb=2a10967af5974e4fa513d029fb995e122d90501a;hp=812a39b2db9194f2a8522a864a6f75c70ed5f536;hpb=b1aa56396abf360a72459602056d68c503396f8d;p=dak.git diff --git a/dak/cruft_report.py b/dak/cruft_report.py index 812a39b2..a960a686 100755 --- a/dak/cruft_report.py +++ b/dak/cruft_report.py @@ -61,7 +61,7 @@ Check for obsolete or duplicated packages. -m, --mode=MODE chose the MODE to run in (full, daily, bdo). -s, --suite=SUITE check suite SUITE. -R, --rdep-check check reverse dependencies - -w, --wanna-build-dump where to find the copies of http://buildd.debian.org/stats/*.txt""" + -w, --wanna-build-dump where to find the copies of https://buildd.debian.org/stats/*.txt""" sys.exit(exit_code) ################################################################################ @@ -689,11 +689,11 @@ def main (): sys.exit(result) sources = utils.open_file(temp_filename) Sources = apt_pkg.TagFile(sources) - while Sources.Step(): - source = Sources.Section.Find('Package') - source_version = Sources.Section.Find('Version') - architecture = Sources.Section.Find('Architecture') - binaries = Sources.Section.Find('Binary') + while Sources.step(): + source = Sources.section.find('Package') + source_version = Sources.section.find('Version') + architecture = Sources.section.find('Architecture') + binaries = Sources.section.find('Binary') binaries_list = [ i.strip() for i in binaries.split(',') ] if "bnb" in checks: @@ -743,10 +743,10 @@ def main (): packages = utils.open_file(temp_filename) Packages = apt_pkg.TagFile(packages) - while Packages.Step(): - package = Packages.Section.Find('Package') - source = Packages.Section.Find('Source', "") - version = Packages.Section.Find('Version') + while Packages.step(): + package = Packages.section.find('Package') + source = Packages.section.find('Source', "") + version = Packages.section.find('Version') if source == "": source = package if bin2source.has_key(package) and \