diff options
| author | Michael Vogt <michael.vogt@ubuntu.com> | 2005-12-01 13:36:35 +0000 |
|---|---|---|
| committer | Michael Vogt <michael.vogt@ubuntu.com> | 2005-12-01 13:36:35 +0000 |
| commit | a31cea47fc17cb55016fd52a6ab6bafe5a0857a8 (patch) | |
| tree | b8a07d6c12f8a53174dfd126116ae5097a7d1d61 /doc/examples | |
| parent | 20ef36a125021a171b831a52d3e9143f5c3682ec (diff) | |
| download | python-apt-a31cea47fc17cb55016fd52a6ab6bafe5a0857a8.tar.gz | |
* pkgAcqFile wrapper added
Diffstat (limited to 'doc/examples')
| -rw-r--r-- | doc/examples/acquire.py | 7 |
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: |
