Inside depgraph._add_dep(), drop unnecessary build-time deps if there is
authorZac Medico <zmedico@gentoo.org>
Wed, 11 Mar 2009 03:23:43 +0000 (03:23 -0000)
committerZac Medico <zmedico@gentoo.org>
Wed, 11 Mar 2009 03:23:43 +0000 (03:23 -0000)
no package available to satisfy it. (trunk r12549)

svn path=/main/branches/2.1.6/; revision=12835

pym/_emerge/__init__.py

index 7002335ddfa99558f8e3c0bfa9e06dcb9fe027fb..a21f414297d13f94e6313eaafb2b245236ce8071 100644 (file)
@@ -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