From 65fc206205e13da3fab7438dcb4501231f6f88ac Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Thu, 31 Mar 2005 18:30:03 +0000 Subject: * merged with the pkgDepCache tree Patches applied: * michael.vogt@ubuntu.com--2005/python-apt--pkgDepCache--0--patch-10 * version number is 0.5.36ubuntu1 * michael.vogt@ubuntu.com--2005/python-apt--pkgDepCache--0--patch-11 * return "None" in GetCandidateVer if no Candidate is found * michael.vogt@ubuntu.com--2005/python-apt--pkgDepCache--0--patch-12 * changelog entry * michael.vogt@ubuntu.com--2005/python-apt--pkgDepCache--0--patch-13 * never do "DepCache.Init()" implicit * michael.vogt@ubuntu.com--2005/python-apt--pkgDepCache--0--patch-14 * reference counting added for Py_None --- doc/examples/depcache.py | 1 + 1 file changed, 1 insertion(+) (limited to 'doc/examples') diff --git a/doc/examples/depcache.py b/doc/examples/depcache.py index baf2d875..0eb2f075 100644 --- a/doc/examples/depcache.py +++ b/doc/examples/depcache.py @@ -34,6 +34,7 @@ print "example package iter: %s" % iter print "\n\n depcache" depcache = apt_pkg.GetDepCache(cache, progress) depcache.ReadPinFile() +# init is needed after the creation/pin file reading print "got a depcache: %s " % depcache print "Marked for install: %s " % depcache.InstCount -- cgit v1.2.3