diff options
| author | Julian Andres Klode <jak@debian.org> | 2013-10-21 20:43:18 +0200 |
|---|---|---|
| committer | Julian Andres Klode <jak@debian.org> | 2013-10-21 20:43:18 +0200 |
| commit | 247bdb9c62efb2f7d68c71a18e84addda3aec7bc (patch) | |
| tree | 39acb4b0187a02a059402a1c0153c03aab79f28b /tests/old/pkgsrcrecords.py | |
| parent | 9b2e18e4d1b95ef505f87561ac06aba50ada3609 (diff) | |
| download | python-apt-247bdb9c62efb2f7d68c71a18e84addda3aec7bc.tar.gz | |
tests/old/*.py: Update to new API as well
Diffstat (limited to 'tests/old/pkgsrcrecords.py')
| -rw-r--r-- | tests/old/pkgsrcrecords.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/old/pkgsrcrecords.py b/tests/old/pkgsrcrecords.py index 2ea9dd3a..36790eff 100644 --- a/tests/old/pkgsrcrecords.py +++ b/tests/old/pkgsrcrecords.py @@ -13,15 +13,15 @@ def main(): cache = apt_pkg.Cache() i=0 print "Running PkgSrcRecords test on all packages:" - for x in cache.Packages: + for x in cache.packages: i += 1 src = apt_pkg.SourceRecords() - if src.Lookup(x.Name): - #print src.Package + if src.lookup(x.name): + #print src.package pass print "\r%i/%i=%.3f%% " % ( - i, cache.PackageCount, - (float(i) / float(cache.PackageCount) * 100)), + i, cache.package_count, + (float(i) / float(cache.package_count) * 100)), if __name__ == "__main__": |
