summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2010-10-27 09:44:46 -0700
committerZac Medico <zmedico@gentoo.org>2010-10-27 09:44:46 -0700
commitd72781de39b0ea018cbb117036c22246c92cd254 (patch)
tree0152727eda717e32b59c4aa5babbda98ce28193e
parent2167ded8772eee4ea18a1e77ee35b11291524cf5 (diff)
downloadportage-d72781de39b0ea018cbb117036c22246c92cd254.tar.gz
portage-d72781de39b0ea018cbb117036c22246c92cd254.tar.bz2
portage-d72781de39b0ea018cbb117036c22246c92cd254.zip
repoman: use slice to avoid IndexError
-rwxr-xr-xbin/repoman2
1 files changed, 1 insertions, 1 deletions
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")]