From: Zac Medico Date: Sun, 23 Jul 2006 00:31:32 +0000 (-0000) Subject: Return a tuple from searchindex instead of a list. X-Git-Tag: v2.1.1~148 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=da0650c1799035022f136e45c6de2e85d9e7508f;p=portage.git Return a tuple from searchindex instead of a list. svn path=/main/trunk/; revision=4008 --- diff --git a/pym/xpak.py b/pym/xpak.py index 9c2907ff9..375ad22b6 100644 --- a/pym/xpak.py +++ b/pym/xpak.py @@ -185,7 +185,7 @@ def searchindex(myindex,myitem): #found datapos=decodeint(myindex[startpos+4+mytestlen:startpos+8+mytestlen]); datalen=decodeint(myindex[startpos+8+mytestlen:startpos+12+mytestlen]); - return [datapos,datalen] + return datapos, datalen startpos=startpos+mytestlen+12 def getitem(myid,myitem):