summaryrefslogtreecommitdiffstats
path: root/bin/repoman
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:46:46 -0700
commit10bbf279cf3a62da3df228de1a786933ec99619b (patch)
treed51970fca12509093ceee13a4d5045c834563ab4 /bin/repoman
parent0678804e3e1bb566523547a11432d5b92ed9b066 (diff)
downloadportage-10bbf279cf3a62da3df228de1a786933ec99619b.tar.gz
portage-10bbf279cf3a62da3df228de1a786933ec99619b.tar.bz2
portage-10bbf279cf3a62da3df228de1a786933ec99619b.zip
repoman: use slice to avoid IndexError
Diffstat (limited to 'bin/repoman')
-rwxr-xr-xbin/repoman2
1 files changed, 1 insertions, 1 deletions
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")]