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

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

pym/_emerge/depgraph.py

index 038ae6fcac6dc5b18b3434824fbf8bff417060d4..a4617318fcb6d6b4465ce1e826d3ce2fb76fad06 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: