From 39305d2a602a6e62be1076869c5dc6a68d0631d7 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Tue, 19 Sep 2006 18:07:49 +0000 Subject: [PATCH] For consistency, pass ignore_soft_deps into digraph.hasallzeros(). svn path=/main/trunk/; revision=4482 --- bin/emerge | 2 +- pym/portage.py | 5 +++-- 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: -- 2.26.2