From a31cea47fc17cb55016fd52a6ab6bafe5a0857a8 Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Thu, 1 Dec 2005 13:36:35 +0000 Subject: * pkgAcqFile wrapper added --- doc/examples/acquire.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'doc/examples') 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: -- cgit v1.2.3