From 2b47dfeca9810669d85b118488a59c70dfcba331 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Wed, 11 Mar 2009 03:23:43 +0000 Subject: [PATCH] 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 --- pym/_emerge/__init__.py | 4 ++++ 1 file changed, 4 insertions(+) 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 -- 2.26.2