diff options
| author | Michael Vogt <mvo@debian.org> | 2013-12-31 23:18:43 +0100 |
|---|---|---|
| committer | Michael Vogt <mvo@debian.org> | 2014-01-05 20:04:26 +0100 |
| commit | e3c26754af1891d2c50993730467fc9335ec5f09 (patch) | |
| tree | a4caaa2974ef7108807a790885c7b560f900a783 /doc/examples/acquire.py | |
| parent | eac4d047d8774def55b03cb82d505d237d93ea55 (diff) | |
| download | python-apt-e3c26754af1891d2c50993730467fc9335ec5f09.tar.gz | |
make pyflakes clean
Diffstat (limited to 'doc/examples/acquire.py')
| -rw-r--r-- | doc/examples/acquire.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/doc/examples/acquire.py b/doc/examples/acquire.py index c2db8327..7381ad68 100644 --- a/doc/examples/acquire.py +++ b/doc/examples/acquire.py @@ -9,6 +9,7 @@ def get_file(fetcher, uri, destfile): # get the file af = apt_pkg.AcquireFile(fetcher, uri=uri, descr="sample descr", destfile=destfile) + print "desc_uri: %s -> %s" % (af.desc_uri, af.destfile) res = fetcher.run() if res != fetcher.RESULT_CONTINUE: return False @@ -45,7 +46,7 @@ except OSError: pass apt_pkg.config.set("Dir::Cache::archives", "/tmp/pyapt-test") -pkg = cache["3ddesktop"] +pkg = cache["2vcard"] depcache.mark_install(pkg) progress = apt.progress.text.AcquireProgress() |
