From: Zac Medico Date: Mon, 19 Mar 2012 16:29:29 +0000 (-0700) Subject: depgraph: reset pkgsettings after setcpv X-Git-Tag: v2.2.0_alpha93~4 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=884993c7f4b9e7e9ede690f5fab81742915fc942;p=portage.git 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. --- 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