summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2010-09-05 23:51:05 -0700
committerZac Medico <zmedico@gentoo.org>2010-09-05 23:51:05 -0700
commitaf9cfb26ada1dbc46d3db7e07996c1ed03768904 (patch)
treed0744022104b71e35db48b9cee4270e9fbbb859f
parentd9741c4857760d6f6b4548b768895b015c9d0c34 (diff)
downloadportage-af9cfb26ada1dbc46d3db7e07996c1ed03768904.tar.gz
portage-af9cfb26ada1dbc46d3db7e07996c1ed03768904.tar.bz2
portage-af9cfb26ada1dbc46d3db7e07996c1ed03768904.zip
Fix FakeVartree._pkg() to cache package instances in self._pkg_cache,
for use by depgraph.
-rw-r--r--pym/_emerge/FakeVartree.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/pym/_emerge/FakeVartree.py b/pym/_emerge/FakeVartree.py
index 5a962c57d..3d07af412 100644
--- a/pym/_emerge/FakeVartree.py
+++ b/pym/_emerge/FakeVartree.py
@@ -188,6 +188,7 @@ class FakeVartree(vartree):
mycounter = 0
pkg.metadata["COUNTER"] = str(mycounter)
+ self._pkg_cache[pkg] = pkg
return pkg
def grab_global_updates(portdb):