From: Zac Medico Date: Thu, 21 Sep 2006 11:16:59 +0000 (-0000) Subject: Fix another IndexError due to an assumption that digraph nodes split into at least... X-Git-Tag: v2.1.1-r1~42 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=86d478180e773d76da5610fc3dcbe16eb10eef57;p=portage.git Fix another IndexError due to an assumption that digraph nodes split into at least 4 parts. svn path=/main/trunk/; revision=4493 --- 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