depgraph: traverse ignored DEPEND if "complete"
authorZac Medico <zmedico@gentoo.org>
Tue, 10 May 2011 23:54:55 +0000 (16:54 -0700)
committerZac Medico <zmedico@gentoo.org>
Tue, 10 May 2011 23:54:55 +0000 (16:54 -0700)
pym/_emerge/depgraph.py

index f7ea6863d35245ac1a9a271039f42352ca57846b..6c79819d26feb1f0088d69788ceee43246e84843 100644 (file)
@@ -1343,8 +1343,11 @@ class depgraph(object):
                                        ignore_build_time_deps = True
 
                # If rebuild mode is not enabled, it's safe to discard ignored
-               # build-time dependencies.
-               if ignore_build_time_deps and not self._rebuild.rebuild:
+               # build-time dependencies. However, keep them if "complete" mode
+               # is enabled, since they make the graph more complete.
+               if ignore_build_time_deps and \
+                       not self._rebuild.rebuild and \
+                       "complete" not in self._dynamic_config.myparams:
                        edepend["DEPEND"] = ""
 
                deps = (