Inside depgraph._add_dep(), drop unnecessary build-time deps if there is
authorZac Medico <zmedico@gentoo.org>
Thu, 22 Jan 2009 21:33:50 +0000 (21:33 -0000)
committerZac Medico <zmedico@gentoo.org>
Thu, 22 Jan 2009 21:33:50 +0000 (21:33 -0000)
no package available to satisfy it.

svn path=/main/trunk/; revision=12549

pym/_emerge/__init__.py

index c45b760f837ceada881235e7d4a2766dd39e1613..d1fcfc1c6f55612e18db0807c9238d7dc93ad8ac 100644 (file)
@@ -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