From b1a5f9530ecffdd0390f7b58384192576aa24e4b Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Thu, 3 Dec 2009 05:09:29 +0000 Subject: [PATCH] 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. (trunk r14922) svn path=/main/branches/2.1.7/; revision=14924 --- pym/_emerge/depgraph.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pym/_emerge/depgraph.py b/pym/_emerge/depgraph.py index 8097637f8..4e9d3364a 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: -- 2.26.2