Display message about --buildpkgonly restriction in pretend mode as well
authorMarius Mauch <genone@gentoo.org>
Fri, 9 Mar 2007 10:31:54 +0000 (10:31 -0000)
committerMarius Mauch <genone@gentoo.org>
Fri, 9 Mar 2007 10:31:54 +0000 (10:31 -0000)
svn path=/main/trunk/; revision=6199

pym/emerge/__init__.py

index 8c2eaf4aa2c6be0fadaae3fbdbaa1bdd9e7a17b6..2c64acada736af5511507d512510297509273b80 100644 (file)
@@ -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):