Don't call digraph.hasallzeros() in --resume mode because the digraph isn't currently...
authorZac Medico <zmedico@gentoo.org>
Thu, 21 Jun 2007 05:59:57 +0000 (05:59 -0000)
committerZac Medico <zmedico@gentoo.org>
Thu, 21 Jun 2007 05:59:57 +0000 (05:59 -0000)
svn path=/main/trunk/; revision=6907

pym/emerge/__init__.py

index 4dd0f395d59ffcea4d1af9e6a75aa50a8454ce78..abce72bb8474edeb4395dfefb52fb956a1073172 100644 (file)
@@ -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):