summaryrefslogtreecommitdiff
path: root/doc/examples
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2005-12-01 13:36:35 +0000
committerMichael Vogt <michael.vogt@ubuntu.com>2005-12-01 13:36:35 +0000
commita31cea47fc17cb55016fd52a6ab6bafe5a0857a8 (patch)
treeb8a07d6c12f8a53174dfd126116ae5097a7d1d61 /doc/examples
parent20ef36a125021a171b831a52d3e9143f5c3682ec (diff)
downloadpython-apt-a31cea47fc17cb55016fd52a6ab6bafe5a0857a8.tar.gz
* pkgAcqFile wrapper added
Diffstat (limited to 'doc/examples')
-rw-r--r--doc/examples/acquire.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/examples/acquire.py b/doc/examples/acquire.py
index 72d0c74e..2736ad9c 100644
--- a/doc/examples/acquire.py
+++ b/doc/examples/acquire.py
@@ -34,6 +34,13 @@ pm = apt_pkg.GetPackageManager(depcache)
print pm
print fetcher
+af = apt_pkg.GetPkgAcqFile(fetcher,
+ uri="ftp://ftp.debian.org/debian/dists/README",
+ descr="sample descr",
+ destFile="/tmp/lala2")
+fetcher.Run()
+sys.exit(1)
+
pm.GetArchives(fetcher,list,recs)
for item in fetcher.Items: