From d72781de39b0ea018cbb117036c22246c92cd254 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Wed, 27 Oct 2010 09:44:46 -0700 Subject: [PATCH] repoman: use slice to avoid IndexError --- bin/repoman | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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")] -- 2.26.2