From: Zac Medico Date: Thu, 3 Dec 2009 04:48:53 +0000 (-0000) Subject: Bug #280336, comment #2 - Clear the package selection cache when packages X-Git-Tag: v2.2_rc55 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=8f43f06b8bcaf4c85d186186a665a490c07f8f12;p=portage.git Bug #280336, comment #2 - Clear the package selection cache when packages are added to the graph. This fixes incorrect choices that happen in some cases. svn path=/main/trunk/; revision=14922 --- diff --git a/pym/_emerge/depgraph.py b/pym/_emerge/depgraph.py index 038ae6fca..a4617318f 100644 --- a/pym/_emerge/depgraph.py +++ b/pym/_emerge/depgraph.py @@ -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: