summaryrefslogtreecommitdiff
path: root/doc/examples/desc.py
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2010-03-23 14:18:44 +0100
committerMichael Vogt <michael.vogt@ubuntu.com>2010-03-23 14:18:44 +0100
commit37650a078f5504dfbc6622d2c06f4435a3302dd4 (patch)
tree35d7df75535420cbe0712a5f7b7b66d61f5e44d1 /doc/examples/desc.py
parent2aa709e41d8896ef897863ea9181c409c4c87a8c (diff)
parent3a08cfb10590d5cf5df1f45d94a424ef6a0f674b (diff)
downloadpython-apt-37650a078f5504dfbc6622d2c06f4435a3302dd4.tar.gz
merged from lp:~mvo/python-apt/mvo
Diffstat (limited to 'doc/examples/desc.py')
-rw-r--r--doc/examples/desc.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/examples/desc.py b/doc/examples/desc.py
index 2febf348..d50aa0ce 100644
--- a/doc/examples/desc.py
+++ b/doc/examples/desc.py
@@ -6,8 +6,8 @@ apt_pkg.init()
apt_pkg.Config.Set("APT::Acquire::Translation", "de")
-cache = apt_pkg.GetCache()
-depcache = apt_pkg.GetDepCache(cache)
+cache = apt_pkg.Cache()
+depcache = apt_pkg.DepCache(cache)
pkg = cache["gcc"]
cand = depcache.GetCandidateVer(pkg)
@@ -18,7 +18,7 @@ print desc
print desc.FileList
(f, index) = desc.FileList.pop(0)
-records = apt_pkg.GetPkgRecords(cache)
+records = apt_pkg.PackageRecords(cache)
records.Lookup((f, index))
desc = records.LongDesc
print len(desc)