From: Zac Medico Date: Wed, 11 Mar 2009 03:23:43 +0000 (-0000) Subject: Inside depgraph._add_dep(), drop unnecessary build-time deps if there is X-Git-Tag: v2.1.6.8~242 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=2b47dfeca9810669d85b118488a59c70dfcba331;p=portage.git Inside depgraph._add_dep(), drop unnecessary build-time deps if there is no package available to satisfy it. (trunk r12549) svn path=/main/branches/2.1.6/; revision=12835 --- diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py index 7002335dd..a21f41429 100644 --- a/pym/_emerge/__init__.py +++ b/pym/_emerge/__init__.py @@ -4804,6 +4804,10 @@ class depgraph(object): dep_pkg, existing_node = self._select_package(dep.root, dep.atom, onlydeps=dep.onlydeps) if not dep_pkg: + if dep.satisfied: + # This could be an unecessary build-time dep + # pulled in by --with-bdeps=y. + return 1 if allow_unsatisfied: self._unsatisfied_deps.append(dep) return 1