From ec2926c7047b75d004d9c3c5f45edc01fbcac8e8 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Thu, 21 Jun 2007 06:02:51 +0000 Subject: Display message about --buildpkgonly restriction in pretend mode as well (trunk r6199) svn path=/main/branches/2.1.2/; revision=6908 --- bin/emerge | 5 +++++ 1 file changed, 5 insertions(+) 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): -- cgit v1.2.3-1-g7c22