From d012f1c89a5f773d9b9ae7128e24d708bb4117cb Mon Sep 17 00:00:00 2001 From: Julian Andres Klode Date: Sun, 8 Mar 2009 20:15:52 +0100 Subject: apt/cache.py: If no progress is given for cache open, use OpProgress. Also fix doc/examples/records.py to use Package.candidate.* --- doc/examples/records.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'doc/examples/records.py') diff --git a/doc/examples/records.py b/doc/examples/records.py index a0fc8dc4..681eac0c 100755 --- a/doc/examples/records.py +++ b/doc/examples/records.py @@ -5,9 +5,9 @@ import apt cache = apt.Cache() for pkg in cache: - if not pkg.candidateRecord: + if not pkg.candidate.record: continue - if "Task" in pkg.candidateRecord: + if "Task" in pkg.candidate.record: print "Pkg %s is part of '%s'" % ( - pkg.name, pkg.candidateRecord["Task"].split()) + pkg.name, pkg.candidate.record["Task"].split()) #print pkg.candidateRecord -- cgit v1.2.3