From e6cb6af7cf6a443b892f32f1408a98c6bd4d3c10 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Wed, 11 May 2011 12:00:27 -0700 Subject: depgraph: in complete mode respect --with-bdeps If you want the graph as complete as possible, now you'll have to use --with-bdeps=y together with --complete-graph. --- pym/_emerge/depgraph.py | 10 +++------- pym/_emerge/help.py | 5 ++++- 2 files changed, 7 insertions(+), 8 deletions(-) (limited to 'pym') diff --git a/pym/_emerge/depgraph.py b/pym/_emerge/depgraph.py index b8089ae96..3169d198b 100644 --- a/pym/_emerge/depgraph.py +++ b/pym/_emerge/depgraph.py @@ -1343,11 +1343,10 @@ class depgraph(object): ignore_build_time_deps = True # If rebuild mode is not enabled, it's safe to discard ignored - # build-time dependencies. However, keep them if "complete" mode - # is enabled, since they make the graph more complete. + # build-time dependencies. If you want these deps to be traversed + # in "complete" mode then you need to specify --with-bdeps=y. if ignore_build_time_deps and \ - not self._rebuild.rebuild and \ - "complete" not in self._dynamic_config.myparams: + not self._rebuild.rebuild: edepend["DEPEND"] = "" deps = ( @@ -4000,9 +3999,6 @@ class depgraph(object): self._select_package = self._select_pkg_from_installed else: self._select_package = self._select_pkg_from_graph - # Make the graph as complete as possible by traversing build-time - # dependencies if they happen to be installed already. - self._dynamic_config.myparams["bdeps"] = "y" self._dynamic_config._traverse_ignored_deps = True already_deep = self._dynamic_config.myparams.get("deep") is True if not already_deep: diff --git a/pym/_emerge/help.py b/pym/_emerge/help.py index de50b7517..9de6aade7 100644 --- a/pym/_emerge/help.py +++ b/pym/_emerge/help.py @@ -383,7 +383,10 @@ def help(myopts, havecolor=1): " option will significantly increase the time taken for dependency" + \ " calculations. Note that, unlike the --deep option, the" + \ " --complete-graph option does not cause any more packages to" + \ - " be updated than would have otherwise been updated with the option disabled." + " be updated than would have otherwise " + \ + "been updated with the option disabled. " + \ + "Using --with-bdeps=y together with --complete-graph makes " + \ + "the graph as complete as possible." for line in wrap(desc, desc_width): print(desc_indent + line) print() -- cgit v1.2.3-1-g7c22