depgraph._complete_graph: fix for --root-deps v2.2.0_alpha100
authorZac Medico <zmedico@gentoo.org>
Thu, 5 Apr 2012 21:37:35 +0000 (14:37 -0700)
committerZac Medico <zmedico@gentoo.org>
Thu, 5 Apr 2012 21:37:35 +0000 (14:37 -0700)
pym/_emerge/depgraph.py

index e9cb22b405b8184a7d83f8b29d41205fd9359e3c..e77c0e82fd47fa6ae240d31ce0045edced89c81c 100644 (file)
@@ -4329,7 +4329,8 @@ class depgraph(object):
                args = self._dynamic_config._initial_arg_list[:]
                for root in self._frozen_config.roots:
                        if root != self._frozen_config.target_root and \
-                               "remove" in self._dynamic_config.myparams:
+                               ("remove" in self._dynamic_config.myparams or
+                               self._frozen_config.myopts.get("--root-deps") is not None):
                                # Only pull in deps for the relevant root.
                                continue
                        depgraph_sets = self._dynamic_config.sets[root]