From: Zac Medico Date: Wed, 27 Oct 2010 15:43:38 +0000 (-0700) Subject: repoman: avoid possible IndexError with svn props X-Git-Tag: v2.1.9.23~6 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=0f3308b6f39b9aa5674eff1c15bf1adb3f3f7a47;p=portage.git repoman: avoid possible IndexError with svn props --- 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()