From: Zac Medico Date: Thu, 21 Jun 2007 05:59:57 +0000 (-0000) Subject: Don't call digraph.hasallzeros() in --resume mode because the digraph isn't currently... X-Git-Tag: v2.2_pre1~1208 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a84fc6f4fc2124186e86829f8eb53516f14cba3b;p=portage.git Don't call digraph.hasallzeros() in --resume mode because the digraph isn't currently populated in that case. svn path=/main/trunk/; revision=6907 --- diff --git a/pym/emerge/__init__.py b/pym/emerge/__init__.py index 4dd0f395d..abce72bb8 100644 --- a/pym/emerge/__init__.py +++ b/pym/emerge/__init__.py @@ -5139,11 +5139,11 @@ def action_build(settings, trees, mtimedb, else: mydepgraph.display( mydepgraph.altlist(reversed=("--tree" in myopts))) - if ("--buildpkgonly" in myopts): - if not mydepgraph.digraph.hasallzeros(ignore_priority=DepPriority.MEDIUM): - print "\n!!! --buildpkgonly requires all dependencies to be merged." - print "!!! You have to merge the dependencies before you can build this package.\n" - sys.exit(1) + if "--buildpkgonly" in myopts and \ + not mydepgraph.digraph.hasallzeros(ignore_priority=DepPriority.MEDIUM): + print "\n!!! --buildpkgonly requires all dependencies to be merged." + print "!!! You have to merge the dependencies before you can build this package.\n" + sys.exit(1) else: if ("--buildpkgonly" in myopts): if not mydepgraph.digraph.hasallzeros(ignore_priority=DepPriority.MEDIUM):