Call depgraph._dep_check_composite_db._clear_cache() inside
authorZac Medico <zmedico@gentoo.org>
Wed, 18 Feb 2009 02:16:34 +0000 (02:16 -0000)
committerZac Medico <zmedico@gentoo.org>
Wed, 18 Feb 2009 02:16:34 +0000 (02:16 -0000)
depgraph._add_pkg() since _dep_check_composite_db._visible() is now
affected by which packages are added to the graph.

svn path=/main/trunk/; revision=12624

pym/_emerge/__init__.py

index 72be73e7c13fe244b2f766f5eba647a29a18e778..f0faf9a4bda4b358c73c92b7df07a3e493c9a1b8 100644 (file)
@@ -5067,9 +5067,10 @@ class depgraph(object):
                                # dependencies so that things like --fetchonly can still
                                # function despite collisions.
                                pass
-                       else:
+                       elif not previously_added:
                                self._slot_pkg_map[pkg.root][pkg.slot_atom] = pkg
                                self.mydbapi[pkg.root].cpv_inject(pkg)
+                               self._filtered_trees[pkg.root]["porttree"].dbapi._clear_cache()
 
                        if not pkg.installed:
                                # Allow this package to satisfy old-style virtuals in case it