repoman: avoid possible IndexError with svn props
authorZac Medico <zmedico@gentoo.org>
Wed, 27 Oct 2010 15:43:38 +0000 (08:43 -0700)
committerZac Medico <zmedico@gentoo.org>
Wed, 27 Oct 2010 15:43:38 +0000 (08:43 -0700)
bin/repoman

index 7cd0fc472f0c5bde24896d40c440c096e798678a..dd903370b98c20ea909a717ca8f1beae438a70dc 100755 (executable)
@@ -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()