Fix another IndexError due to an assumption that digraph nodes split into at least...
authorZac Medico <zmedico@gentoo.org>
Thu, 21 Sep 2006 11:16:59 +0000 (11:16 -0000)
committerZac Medico <zmedico@gentoo.org>
Thu, 21 Sep 2006 11:16:59 +0000 (11:16 -0000)
svn path=/main/trunk/; revision=4493

bin/emerge

index 2b741d4be355b48f2fe6bf4fa2d9a80be80496df..7bf35f190a889ac52560b93ce69112d967e9d8a0 100755 (executable)
@@ -998,8 +998,8 @@ class depgraph:
                missing=0
                if "--usepkgonly" in self.myopts:
                        for x in self.digraph.all_nodes():
-                               xs=string.split(x," ")
-                               if (xs[0] != "binary") and (xs[3]=="merge"):
+                               xs = x.split()
+                               if len(xs) >= 4 and xs[0] != "binary" and xs[3] == "merge":
                                        if missing == 0:
                                                print
                                        missing += 1