From 884993c7f4b9e7e9ede690f5fab81742915fc942 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Mon, 19 Mar 2012 09:29:29 -0700 Subject: [PATCH] depgraph: reset pkgsettings after setcpv This should prevent doebuild_environment from incorrectly using the CATEGORY from the previous setcpv call, as reported in bug #408817. --- pym/_emerge/depgraph.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pym/_emerge/depgraph.py b/pym/_emerge/depgraph.py index e4310b480..4d1bc330e 100644 --- a/pym/_emerge/depgraph.py +++ b/pym/_emerge/depgraph.py @@ -4075,6 +4075,7 @@ class depgraph(object): forced_flags = set() forced_flags.update(pkgsettings.useforce) forced_flags.update(pkgsettings.usemask) + pkgsettings.reset() cur_iuse = iuses if myeb and not usepkgonly and not useoldpkg: cur_iuse = myeb.iuse.all -- 2.26.2