From: Zac Medico Date: Thu, 5 Apr 2012 18:22:49 +0000 (-0700) Subject: depgraph._validate_blockers: optimize --root-deps X-Git-Tag: v2.2.0_alpha100~4 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e9740bcd93e01633695dee32425d1bab38e607c7;p=portage.git depgraph._validate_blockers: optimize --root-deps --- diff --git a/pym/_emerge/depgraph.py b/pym/_emerge/depgraph.py index b7fa29759..e9cb22b40 100644 --- a/pym/_emerge/depgraph.py +++ b/pym/_emerge/depgraph.py @@ -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]