From: Zac Medico Date: Thu, 7 Aug 2008 22:08:24 +0000 (-0000) Subject: When testing containment of elem[:1] in "MR", filter potential empty string X-Git-Tag: v2.2_rc7~38 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=23acd0ef21c1aac659567a0244265b731ecff111;p=portage.git When testing containment of elem[:1] in "MR", filter potential empty string matches. svn path=/main/trunk/; revision=11344 --- diff --git a/bin/repoman b/bin/repoman index 26a669d34..18be8e5aa 100755 --- a/bin/repoman +++ b/bin/repoman @@ -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.