From 86d478180e773d76da5610fc3dcbe16eb10eef57 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Thu, 21 Sep 2006 11:16:59 +0000 Subject: [PATCH] Fix another IndexError due to an assumption that digraph nodes split into at least 4 parts. svn path=/main/trunk/; revision=4493 --- bin/emerge | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/emerge b/bin/emerge index 2b741d4be..7bf35f190 100755 --- a/bin/emerge +++ b/bin/emerge @@ -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 -- 2.26.2