Fix FakeVartree._pkg() to cache package instances in self._pkg_cache,
authorZac Medico <zmedico@gentoo.org>
Mon, 6 Sep 2010 06:51:05 +0000 (23:51 -0700)
committerZac Medico <zmedico@gentoo.org>
Mon, 6 Sep 2010 06:51:05 +0000 (23:51 -0700)
for use by depgraph.

pym/_emerge/FakeVartree.py

index 5a962c57d6be18c28a50327f84cc86ada491dd7e..3d07af412d68d1e6954caa9b8362b7c0f52ca1e7 100644 (file)
@@ -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):