diff options
-rw-r--r-- | pym/emerge/__init__.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/pym/emerge/__init__.py b/pym/emerge/__init__.py index 4dd0f395d..abce72bb8 100644 --- a/pym/emerge/__init__.py +++ b/pym/emerge/__init__.py @@ -5139,11 +5139,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) + 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): |