From: Marius Mauch Date: Fri, 9 Mar 2007 10:31:54 +0000 (-0000) Subject: Display message about --buildpkgonly restriction in pretend mode as well X-Git-Tag: v2.2_pre1~1590 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=0ecce044fa65b6a2a1bcf0dc967ef3d6200023c4;p=portage.git Display message about --buildpkgonly restriction in pretend mode as well svn path=/main/trunk/; revision=6199 --- diff --git a/pym/emerge/__init__.py b/pym/emerge/__init__.py index 8c2eaf4aa..2c64acada 100644 --- a/pym/emerge/__init__.py +++ b/pym/emerge/__init__.py @@ -4944,6 +4944,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) else: if ("--buildpkgonly" in myopts): if not mydepgraph.digraph.hasallzeros(ignore_priority=DepPriority.MEDIUM):