depgraph._validate_blockers: optimize --root-deps
authorZac Medico <zmedico@gentoo.org>
Thu, 5 Apr 2012 18:22:49 +0000 (11:22 -0700)
committerZac Medico <zmedico@gentoo.org>
Thu, 5 Apr 2012 18:22:49 +0000 (11:22 -0700)
pym/_emerge/depgraph.py

index b7fa297595cd8c23f27e356b319ff0e2cc65ae41..e9cb22b405b8184a7d83f8b29d41205fd9359e3c 100644 (file)
@@ -4470,6 +4470,11 @@ class depgraph(object):
                        # are already built.
                        dep_keys = ["RDEPEND", "PDEPEND"]
                        for myroot in self._frozen_config.trees:
+
+                               if self._frozen_config.myopts.get("--root-deps") is not None and \
+                                       myroot != self._frozen_config.target_root:
+                                       continue
+
                                vardb = self._frozen_config.trees[myroot]["vartree"].dbapi
                                pkgsettings = self._frozen_config.pkgsettings[myroot]
                                root_config = self._frozen_config.roots[myroot]