From d91bb56690210a5b8744365af31e248de59355d6 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Thu, 22 Jan 2009 21:33:50 +0000 Subject: [PATCH] Inside depgraph._add_dep(), drop unnecessary build-time deps if there is no package available to satisfy it. svn path=/main/trunk/; revision=12549 --- pym/_emerge/__init__.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py index c45b760f8..d1fcfc1c6 100644 --- a/pym/_emerge/__init__.py +++ b/pym/_emerge/__init__.py @@ -4820,6 +4820,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 -- 2.26.2