diff options
author | Zac Medico <zmedico@gentoo.org> | 2010-10-27 09:44:46 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2010-10-27 09:44:46 -0700 |
commit | d72781de39b0ea018cbb117036c22246c92cd254 (patch) | |
tree | 0152727eda717e32b59c4aa5babbda98ce28193e | |
parent | 2167ded8772eee4ea18a1e77ee35b11291524cf5 (diff) | |
download | portage-d72781de39b0ea018cbb117036c22246c92cd254.tar.gz portage-d72781de39b0ea018cbb117036c22246c92cd254.tar.bz2 portage-d72781de39b0ea018cbb117036c22246c92cd254.zip |
repoman: use slice to avoid IndexError
-rwxr-xr-x | bin/repoman | 2 |
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")] |