summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2010-10-27 08:43:38 -0700
committerZac Medico <zmedico@gentoo.org>2010-10-27 08:43:38 -0700
commit9bb5fb831e41c2d61d92e100d509c2348285c5f9 (patch)
treee869904b7fc2bcf14611782ed8b2ebbc9540a830
parentfb42da393e0b9b49b5142e39c0a863eef0ae4728 (diff)
downloadportage-9bb5fb831e41c2d61d92e100d509c2348285c5f9.tar.gz
portage-9bb5fb831e41c2d61d92e100d509c2348285c5f9.tar.bz2
portage-9bb5fb831e41c2d61d92e100d509c2348285c5f9.zip
repoman: avoid possible IndexError with svn props
-rwxr-xr-xbin/repoman3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/repoman b/bin/repoman
index 7cd0fc472..dd903370b 100755
--- a/bin/repoman
+++ b/bin/repoman
@@ -2157,7 +2157,8 @@ else:
# Subversion expands keywords specified in svn:keywords properties.
props = os.popen("svn propget -R svn:keywords").readlines()
- expansion = dict(("./" + prop.split(" - ")[0], prop.split(" - ")[1].split()) for prop in props)
+ expansion = dict(("./" + prop.split(" - ")[0], prop.split(" - ")[1].split()) \
+ for prop in props if " - " in prop)
elif vcs == "git":
mychanged = os.popen("git diff-index --name-only --relative --diff-filter=M HEAD").readlines()