From 3d57501e8f8d81020328a05df3a40fe005768cd6 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Mon, 30 Jul 2007 04:40:35 +0000 Subject: [PATCH] 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 --- bin/emerge | 5 +++++ 1 file changed, 5 insertions(+) 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): -- 2.26.2