summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2007-09-14 17:07:42 +0200
committerMichael Vogt <michael.vogt@ubuntu.com>2007-09-14 17:07:42 +0200
commit993b685dbfda4f606a701478540874da7c684c64 (patch)
tree768f004c11c6aa516f87d94d5ecc6e5bdb8ae2bc /doc
parent8ad58480ce8a161519339b41eacefc26059bebf7 (diff)
downloadpython-apt-993b685dbfda4f606a701478540874da7c684c64.tar.gz
* doc/examples/acquire.py
- add actiongroup to example
Diffstat (limited to 'doc')
-rw-r--r--doc/examples/acquire.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/doc/examples/acquire.py b/doc/examples/acquire.py
index a0790c98..1291dbfa 100644
--- a/doc/examples/acquire.py
+++ b/doc/examples/acquire.py
@@ -45,7 +45,7 @@ fetcher = apt_pkg.GetAcquire(progress)
pm = apt_pkg.GetPackageManager(depcache)
pm.GetArchives(fetcher,list,recs)
print "%s (%s)" % (apt_pkg.SizeToStr(fetcher.FetchNeeded), fetcher.FetchNeeded)
-
+actiongroup = apt_pkg.GetPkgActionGroup(depcache)
for pkg in cache.Packages:
depcache.MarkKeep(pkg)
@@ -68,7 +68,6 @@ print pm
print fetcher
get_file(fetcher, "ftp://ftp.debian.org/debian/dists/README", "/tmp/lala")
-sys.exit(1)
pm.GetArchives(fetcher,list,recs)