summaryrefslogtreecommitdiff
path: root/doc/examples/action.py
diff options
context:
space:
mode:
Diffstat (limited to 'doc/examples/action.py')
-rw-r--r--doc/examples/action.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/examples/action.py b/doc/examples/action.py
index 8ee86eb7..512945df 100644
--- a/doc/examples/action.py
+++ b/doc/examples/action.py
@@ -10,7 +10,7 @@ from progress import TextFetchProgress
apt_pkg.init()
progress = OpTextProgress()
-cache = apt_pkg.GetCache(progress)
+cache = apt_pkg.Cache(progress)
print "Available packages: %s " % cache.PackageCount
print "Fetching"
@@ -25,7 +25,7 @@ print "example package iter: %s" % iter
# get depcache
print "\n\n depcache"
-depcache = apt_pkg.GetDepCache(cache, progress)
+depcache = apt_pkg.DepCache(cache, progress)
depcache.ReadPinFile()
print "got a depcache: %s " % depcache
print "Marked for install: %s " % depcache.InstCount