summaryrefslogtreecommitdiff
path: root/tests/pkgsrcrecords.py
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2009-04-19 17:30:57 +0200
committerJulian Andres Klode <jak@debian.org>2009-04-19 17:30:57 +0200
commitd19943ea8489e06a1f5cd0bd545e0a0aeb4b8551 (patch)
treea41904c7fbeb9065be976b5dd15661c931e644b2 /tests/pkgsrcrecords.py
parenta7026989dd1ea3b70cbfc80cf92077efb2f52ba3 (diff)
downloadpython-apt-d19943ea8489e06a1f5cd0bd545e0a0aeb4b8551.tar.gz
* Update the code to use the new classes.
Diffstat (limited to 'tests/pkgsrcrecords.py')
-rw-r--r--tests/pkgsrcrecords.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/pkgsrcrecords.py b/tests/pkgsrcrecords.py
index 77670540..2ea9dd3a 100644
--- a/tests/pkgsrcrecords.py
+++ b/tests/pkgsrcrecords.py
@@ -10,12 +10,12 @@ import sys
def main():
apt_pkg.init()
- cache = apt_pkg.GetCache()
+ cache = apt_pkg.Cache()
i=0
print "Running PkgSrcRecords test on all packages:"
for x in cache.Packages:
i += 1
- src = apt_pkg.GetPkgSrcRecords()
+ src = apt_pkg.SourceRecords()
if src.Lookup(x.Name):
#print src.Package
pass