saveNomergeFavorites: fix possible root confusion
authorZac Medico <zmedico@gentoo.org>
Mon, 20 Dec 2010 15:47:48 +0000 (07:47 -0800)
committerZac Medico <zmedico@gentoo.org>
Mon, 20 Dec 2010 15:47:48 +0000 (07:47 -0800)
pym/_emerge/depgraph.py

index 7e47a46047e684e71c6181cbba0f50bab2ec02bb..9a184d324c3f64cdebf9e8af1d831173bc5a2410 100644 (file)
@@ -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: