From: Zac Medico Date: Mon, 30 Jul 2007 04:40:35 +0000 (-0000) Subject: Display message about --buildpkgonly restriction in pretend mode as well (branches... X-Git-Tag: v2.1.2.11~42 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=3d57501e8f8d81020328a05df3a40fe005768cd6;p=portage.git Display message about --buildpkgonly restriction in pretend mode as well (branches/2.1.2 r6908) svn path=/main/branches/2.1.2.9/; revision=7475 --- diff --git a/bin/emerge b/bin/emerge index 8ca27d489..df06f74dd 100755 --- a/bin/emerge +++ b/bin/emerge @@ -4990,6 +4990,11 @@ def action_build(settings, trees, mtimedb, else: mydepgraph.display( mydepgraph.altlist(reversed=("--tree" in myopts))) + 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):