Bug #280336, comment #2 - Clear the package selection cache when packages v2.1.7.10
authorZac Medico <zmedico@gentoo.org>
Thu, 3 Dec 2009 05:09:29 +0000 (05:09 -0000)
committerZac Medico <zmedico@gentoo.org>
Thu, 3 Dec 2009 05:09:29 +0000 (05:09 -0000)
are added to the graph. This fixes incorrect choices that happen in some
cases. (trunk r14922)

svn path=/main/branches/2.1.7/; revision=14924

pym/_emerge/depgraph.py

index 8097637f8d9fa751dc8b71b29ec8f6c947748e28..4e9d3364a045ef3f03d222a5794170843c65e010 100644 (file)
@@ -997,6 +997,7 @@ class depgraph(object):
                                self._dynamic_config._slot_pkg_map[pkg.root][pkg.slot_atom] = pkg
                                self._dynamic_config.mydbapi[pkg.root].cpv_inject(pkg)
                                self._dynamic_config._filtered_trees[pkg.root]["porttree"].dbapi._clear_cache()
+                               self._dynamic_config._highest_pkg_cache.clear()
                                self._check_masks(pkg)
 
                        if not pkg.installed: