summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pym/emerge/__init__.py5
1 files changed, 5 insertions, 0 deletions
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):