diff options
author | Zac Medico <zmedico@gentoo.org> | 2009-01-22 21:33:50 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2009-01-22 21:33:50 +0000 |
commit | d91bb56690210a5b8744365af31e248de59355d6 (patch) | |
tree | 4548b19926104a1637b43118cd2ac000aaec5a30 | |
parent | 6f424873a1fa542c7cf7577801fc14661ea15b2f (diff) | |
download | portage-d91bb56690210a5b8744365af31e248de59355d6.tar.gz portage-d91bb56690210a5b8744365af31e248de59355d6.tar.bz2 portage-d91bb56690210a5b8744365af31e248de59355d6.zip |
Inside depgraph._add_dep(), drop unnecessary build-time deps if there is
no package available to satisfy it.
svn path=/main/trunk/; revision=12549
-rw-r--r-- | pym/_emerge/__init__.py | 4 |
1 files changed, 4 insertions, 0 deletions
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 |