From a9de7a29a25c876caab34b288cf87629514c7ac2 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Thu, 5 Apr 2012 11:08:52 -0700 Subject: [PATCH] depgraph._load_vdb: optimize --root-deps --- pym/_emerge/depgraph.py | 4 ++++ 1 file changed, 4 insertions(+) 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 -- 2.26.2