]> git.decadent.org.uk Git - dak.git/blobdiff - dak/cruft_report.py
Use more https://
[dak.git] / dak / cruft_report.py
index 812a39b2db9194f2a8522a864a6f75c70ed5f536..a960a686717cbedf881d07317cad2078e08aa4ab 100755 (executable)
@@ -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 \