Display message about --buildpkgonly restriction in pretend mode as well (branches...
authorZac Medico <zmedico@gentoo.org>
Mon, 30 Jul 2007 04:40:35 +0000 (04:40 -0000)
committerZac Medico <zmedico@gentoo.org>
Mon, 30 Jul 2007 04:40:35 +0000 (04:40 -0000)
svn path=/main/branches/2.1.2.9/; revision=7475

bin/emerge

index 8ca27d489905d24bb32907c142ecf6c8cb24b323..df06f74dd5e330dae728a1b2eb4cf6d2702223d9 100755 (executable)
@@ -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):