summaryrefslogtreecommitdiff
path: root/doc/examples/inst.py
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2013-10-21 20:39:09 +0200
committerJulian Andres Klode <jak@debian.org>2013-10-21 20:39:09 +0200
commit9b2e18e4d1b95ef505f87561ac06aba50ada3609 (patch)
treeb671b576d80b19d60f539788a74feceecf9031e8 /doc/examples/inst.py
parent8a67219266605b39a522aee08bf7cd3b0b6c3a8c (diff)
downloadpython-apt-9b2e18e4d1b95ef505f87561ac06aba50ada3609.tar.gz
doc/examples/*.py: Update examples to the new API
Closes: #639022
Diffstat (limited to 'doc/examples/inst.py')
-rw-r--r--doc/examples/inst.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/examples/inst.py b/doc/examples/inst.py
index 5a7fc993..dd39c25b 100644
--- a/doc/examples/inst.py
+++ b/doc/examples/inst.py
@@ -36,12 +36,12 @@ iprogress = TextInstallProgress()
pkg = cache["3dchess"]
# install or remove, the importend thing is to keep us busy :)
-if pkg.isInstalled:
+if pkg.is_installed:
print "Going to delete %s" % pkg.name
- pkg.markDelete()
+ pkg.mark_delete()
else:
print "Going to install %s" % pkg.name
- pkg.markInstall()
+ pkg.mark_install()
res = cache.commit(fprogress, iprogress)
print res