]> git.decadent.org.uk Git - dak.git/commitdiff
stop using deprecated methods from apt_pkg
authorAnsgar Burchardt <ansgar@debian.org>
Sun, 26 May 2013 01:43:23 +0000 (03:43 +0200)
committerAnsgar Burchardt <ansgar@debian.org>
Sun, 26 May 2013 01:43:23 +0000 (03:43 +0200)
One occurence of apt_pkg.TagFile's Step() method was missed in
52c35949e1e7948a29133ffc9b24897d66af23c1.

dak/check_archive.py

index 5265cc50b9977d6ed1591d8771b36c1d92d402db..6f16aecc8c89a6f1cd6ef6ab6691eda824bc7a22 100755 (executable)
@@ -433,7 +433,7 @@ def validate_packages(suite, component, architecture):
         sys.exit(result)
     packages = utils.open_file(temp_filename)
     Packages = apt_pkg.TagFile(packages)
-    while Packages.Step():
+    while Packages.step():
         filename = "%s/%s" % (Cnf["Dir::Root"], Packages.section.find('Filename'))
         if not os.path.exists(filename):
             print "W: %s missing." % (filename)