Update --buildpkgonly logic to account for DepPriority.MEDIUM_SOFT. (trunk r7108)
authorZac Medico <zmedico@gentoo.org>
Sun, 1 Jul 2007 08:35:12 +0000 (08:35 -0000)
committerZac Medico <zmedico@gentoo.org>
Sun, 1 Jul 2007 08:35:12 +0000 (08:35 -0000)
svn path=/main/branches/2.1.2/; revision=7109

bin/emerge

index bf33f583940e23f60a3d239e9a9befdd4a28e8ae..ba0937e4a261c942cc0bc43b72d5dd02e0edd01e 100755 (executable)
@@ -5207,13 +5207,13 @@ def action_build(settings, trees, mtimedb,
                        mydepgraph.display(
                                mydepgraph.altlist(reversed=("--tree" in myopts)))
                        if "--buildpkgonly" in myopts and \
-                               not mydepgraph.digraph.hasallzeros(ignore_priority=DepPriority.MEDIUM):
+                               not mydepgraph.digraph.hasallzeros(ignore_priority=DepPriority.MEDIUM_SOFT):
                                        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):
+                       if not mydepgraph.digraph.hasallzeros(ignore_priority=DepPriority.MEDIUM_SOFT):
                                print "\n!!! --buildpkgonly requires all dependencies to be merged."
                                print "!!! Cannot merge requested packages. Merge deps and try again.\n"
                                sys.exit(1)