From: Zac Medico Date: Wed, 27 Oct 2010 16:44:46 +0000 (-0700) Subject: repoman: use slice to avoid IndexError X-Git-Tag: v2.2.0_alpha2~4 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=d72781de39b0ea018cbb117036c22246c92cd254;p=portage.git repoman: use slice to avoid IndexError --- diff --git a/bin/repoman b/bin/repoman index d24907310..0265e9dd5 100755 --- a/bin/repoman +++ b/bin/repoman @@ -2151,7 +2151,7 @@ else: if vcs == "svn": svnstatus = os.popen("svn status").readlines() - mychanged = [ "./" + elem.split()[-1:][0] for elem in svnstatus if elem and (elem[0] in "MR" or elem[1] in "M")] + mychanged = [ "./" + elem.split()[-1:][0] for elem in svnstatus if (elem[:1] in "MR" or elem[1:2] in "M")] mynew = [ "./" + elem.split()[-1:][0] for elem in svnstatus if elem.startswith("A")] myremoved = [ "./" + elem.split()[-1:][0] for elem in svnstatus if elem.startswith("D")]