From 10bbf279cf3a62da3df228de1a786933ec99619b Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Wed, 27 Oct 2010 09:44:46 -0700 Subject: 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 1cd0adc5b..6b1a62446 100755 --- a/bin/repoman +++ b/bin/repoman @@ -2148,7 +2148,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")] -- cgit v1.2.3-1-g7c22