summaryrefslogtreecommitdiff
path: root/doc/examples/acquire.py
diff options
context:
space:
mode:
Diffstat (limited to 'doc/examples/acquire.py')
-rw-r--r--doc/examples/acquire.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/doc/examples/acquire.py b/doc/examples/acquire.py
index 7381ad68..1971ba2f 100644
--- a/doc/examples/acquire.py
+++ b/doc/examples/acquire.py
@@ -34,7 +34,8 @@ progress = apt.progress.text.AcquireProgress()
fetcher = apt_pkg.Acquire(progress)
pm = apt_pkg.PackageManager(depcache)
pm.get_archives(fetcher, list, recs)
-print "%s (%s)" % (apt_pkg.size_to_str(fetcher.fetch_needed), fetcher.fetch_needed)
+print "%s (%s)" % (
+ apt_pkg.size_to_str(fetcher.fetch_needed), fetcher.fetch_needed)
actiongroup = apt_pkg.ActionGroup(depcache)
for pkg in cache.packages:
depcache.mark_keep(pkg)
@@ -65,7 +66,7 @@ for item in fetcher.items:
print item
if item.status == item.STAT_ERROR:
print "Some error ocured: '%s'" % item.error_text
- if item.complete == False:
+ if item.complete is False:
print "No error, still nothing downloaded (%s)" % item.error_text
print
@@ -75,4 +76,4 @@ print "fetcher.Run() returned: %s" % res
print "now runing pm.DoInstall()"
res = pm.do_install(1)
-print "pm.DoInstall() returned: %s"% res
+print "pm.DoInstall() returned: %s" % res