summaryrefslogtreecommitdiff
path: root/doc/examples/inst.py
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2015-07-05 22:06:22 +0300
committerIgor Pashev <pashev.igor@gmail.com>2015-07-05 22:06:22 +0300
commit622812485150fa7864910ee2f710d5aab2fa9e6d (patch)
treeb3bc4fd72bb80e74ba5a60d8b3d47e610dff012e /doc/examples/inst.py
parent798846ab8337471998b0a4d796d6d409453faa7d (diff)
parentfdd173dd444098ed533cbcd541a7f10f228bc47e (diff)
downloadpython-apt-622812485150fa7864910ee2f710d5aab2fa9e6d.tar.gz
Merge git://anonscm.debian.org/apt/python-apt
Conflicts: debian/changelog python/apt_pkgmodule.cc
Diffstat (limited to 'doc/examples/inst.py')
-rw-r--r--doc/examples/inst.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/examples/inst.py b/doc/examples/inst.py
index 5a7fc993..25658435 100644
--- a/doc/examples/inst.py
+++ b/doc/examples/inst.py
@@ -17,7 +17,7 @@ class TextInstallProgress(InstallProgress):
InstallProgress.updateInterface(self)
if self.last >= self.percent:
return
- sys.stdout.write("\r[%s] %s\n" %(self.percent, self.status))
+ sys.stdout.write("\r[%s] %s\n" % (self.percent, self.status))
sys.stdout.flush()
self.last = self.percent
@@ -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