From: Zac Medico Date: Thu, 21 Jun 2007 06:02:51 +0000 (-0000) Subject: Display message about --buildpkgonly restriction in pretend mode as well (trunk r6199) X-Git-Tag: v2.1.3~190 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=ec2926c7047b75d004d9c3c5f45edc01fbcac8e8;p=portage.git Display message about --buildpkgonly restriction in pretend mode as well (trunk r6199) svn path=/main/branches/2.1.2/; revision=6908 --- diff --git a/bin/emerge b/bin/emerge index 7ee4c3f0a..12d7a292a 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):