Display message about --buildpkgonly restriction in pretend mode as well (trunk r6199)
authorZac Medico <zmedico@gentoo.org>
Thu, 21 Jun 2007 06:02:51 +0000 (06:02 -0000)
committerZac Medico <zmedico@gentoo.org>
Thu, 21 Jun 2007 06:02:51 +0000 (06:02 -0000)
svn path=/main/branches/2.1.2/; revision=6908

bin/emerge

index 7ee4c3f0a4079194236679d3fd9aad86f19e2330..12d7a292ac47ac5f0c625bc54c9eb1fb4b5fcb1d 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):