Inside depgraph._complete_graph(), only pull in deps for the relevant root
authorZac Medico <zmedico@gentoo.org>
Sat, 7 Nov 2009 01:10:05 +0000 (01:10 -0000)
committerZac Medico <zmedico@gentoo.org>
Sat, 7 Nov 2009 01:10:05 +0000 (01:10 -0000)
during remove operations. Thanks to acevery for reporting. (trunk r14775)

svn path=/main/branches/2.1.7/; revision=14788

pym/_emerge/depgraph.py

index d2f101bd668d2684d24781a0623328f69651175e..85b826f93e6a784bacbc8a361f2f25c85d0e41e2 100644 (file)
@@ -2633,6 +2633,10 @@ class depgraph(object):
                        self._dynamic_config.myparams["deep"] = True
 
                for root in self._frozen_config.roots:
+                       if root != self._frozen_config.target_root and \
+                               "remove" in self._dynamic_config.myparams:
+                               # Only pull in deps for the relevant root.
+                               continue
                        if required_sets is None or root not in required_sets:
                                required_set_names = self._frozen_config._required_set_names.copy()
                        else: