From: Zac Medico Date: Thu, 5 Apr 2012 18:08:52 +0000 (-0700) Subject: depgraph._load_vdb: optimize --root-deps X-Git-Tag: v2.2.0_alpha100~5 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a9de7a29a25c876caab34b288cf87629514c7ac2;p=portage.git depgraph._load_vdb: optimize --root-deps --- diff --git a/pym/_emerge/depgraph.py b/pym/_emerge/depgraph.py index c01dc72da..b7fa29759 100644 --- a/pym/_emerge/depgraph.py +++ b/pym/_emerge/depgraph.py @@ -519,6 +519,10 @@ class depgraph(object): preload_installed_pkgs = \ "--nodeps" not in self._frozen_config.myopts + if self._frozen_config.myopts.get("--root-deps") is not None and \ + myroot != self._frozen_config.target_root: + continue + fake_vartree = self._frozen_config.trees[myroot]["vartree"] if not fake_vartree.dbapi: # This needs to be called for the first depgraph, but not for