summaryrefslogtreecommitdiffstats
path: root/pym
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2010-12-20 07:47:48 -0800
committerZac Medico <zmedico@gentoo.org>2010-12-20 07:47:48 -0800
commitf9c2070525355bafc47f43d0074169afefd3497e (patch)
tree4988b2776816a408e071b36a50c4ab8fa39236cb /pym
parentf991bb526d50c363dd0743955cb463f7ecb135cb (diff)
downloadportage-f9c2070525355bafc47f43d0074169afefd3497e.tar.gz
portage-f9c2070525355bafc47f43d0074169afefd3497e.tar.bz2
portage-f9c2070525355bafc47f43d0074169afefd3497e.zip
saveNomergeFavorites: fix possible root confusion
Diffstat (limited to 'pym')
-rw-r--r--pym/_emerge/depgraph.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/pym/_emerge/depgraph.py b/pym/_emerge/depgraph.py
index 7e47a4604..9a184d324 100644
--- a/pym/_emerge/depgraph.py
+++ b/pym/_emerge/depgraph.py
@@ -5037,6 +5037,9 @@ class depgraph(object):
if pkg_status != "nomerge":
continue
+ if x.root != root_config.root:
+ continue
+
try:
myfavkey = create_world_atom(x, args_set, root_config)
if myfavkey:
@@ -5053,6 +5056,8 @@ class depgraph(object):
for arg in self._dynamic_config._initial_arg_list:
if not isinstance(arg, SetArg):
continue
+ if arg.root_config.root != root_config.root:
+ continue
k = arg.name
if k in ("selected", "world") or \
not root_config.sets[k].world_candidate: