summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbin/emerge2
-rw-r--r--pym/portage.py5
2 files changed, 4 insertions, 3 deletions
diff --git a/bin/emerge b/bin/emerge
index 5eabf9f94..edda52ecd 100755
--- a/bin/emerge
+++ b/bin/emerge
@@ -3546,7 +3546,7 @@ def action_build(settings, trees, mtimedb,
mydepgraph.altlist(reversed=("--tree" in myopts)))
else:
if ("--buildpkgonly" in myopts):
- if not mydepgraph.digraph.hasallzeros():
+ if not mydepgraph.digraph.hasallzeros(ignore_soft_deps=True):
print "\n!!! --buildpkgonly requires all dependencies to be merged."
print "!!! Cannot merge requested packages. Merge deps and try again.\n"
sys.exit(1)
diff --git a/pym/portage.py b/pym/portage.py
index a0e8a87bb..c7d48205d 100644
--- a/pym/portage.py
+++ b/pym/portage.py
@@ -444,8 +444,9 @@ class digraph:
return leaf_nodes[0]
return None
- def hasallzeros(self):
- return len(self.leaf_nodes(ignore_soft_deps=True)) == len(self.order)
+ def hasallzeros(self, ignore_soft_deps=False):
+ return len(self.leaf_nodes(ignore_soft_deps=ignore_soft_deps)) == \
+ len(self.order)
def debug_print(self):
for node in self.nodes: