When testing containment of elem[:1] in "MR", filter potential empty string
authorZac Medico <zmedico@gentoo.org>
Thu, 7 Aug 2008 22:08:24 +0000 (22:08 -0000)
committerZac Medico <zmedico@gentoo.org>
Thu, 7 Aug 2008 22:08:24 +0000 (22:08 -0000)
matches.

svn path=/main/trunk/; revision=11344

bin/repoman

index 26a669d34f46519ff0e6d9b20b299754e9f3e5ad..18be8e5aaeef4ac4a0ad8d00e37a716b505878cb 100755 (executable)
@@ -1676,7 +1676,7 @@ else:
 
        if vcs == "svn":
                svnstatus = os.popen("svn status").readlines()
-               mychanged = [ elem.rstrip()[7:] for elem in svnstatus if elem[:1] in "MR" ]
+               mychanged = [ elem.rstrip()[7:] for elem in svnstatus if elem and elem[:1] in "MR" ]
                mynew     = [ elem.rstrip()[7:] for elem in svnstatus if elem.startswith("A") ]
                myremoved = [ elem.rstrip()[7:] for elem in svnstatus if elem.startswith("D") ]
                # in contrast to CVS, SVN expands nothing by default.