summaryrefslogtreecommitdiffstats
path: root/bin/repoman
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:46:09 -0700
commit0f3308b6f39b9aa5674eff1c15bf1adb3f3f7a47 (patch)
tree5fd36940ad33195905aeaae49e7273329ad120f7 /bin/repoman
parent5b145fc4bacb452e074f0769149e89b5201659e0 (diff)
downloadportage-0f3308b6f39b9aa5674eff1c15bf1adb3f3f7a47.tar.gz
portage-0f3308b6f39b9aa5674eff1c15bf1adb3f3f7a47.tar.bz2
portage-0f3308b6f39b9aa5674eff1c15bf1adb3f3f7a47.zip
repoman: avoid possible IndexError with svn props
Diffstat (limited to 'bin/repoman')
-rwxr-xr-xbin/repoman3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/repoman b/bin/repoman
index 5e3774321..f21420e26 100755
--- a/bin/repoman
+++ b/bin/repoman
@@ -2154,7 +2154,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()