From: "Zac Medico (zmedico)" <zmedico@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] portage r11344 - main/trunk/bin
Date: Thu, 07 Aug 2008 22:08:25 +0000 [thread overview]
Message-ID: <E1KRDej-0001cU-BG@stork.gentoo.org> (raw)
Author: zmedico
Date: 2008-08-07 22:08:24 +0000 (Thu, 07 Aug 2008)
New Revision: 11344
Modified:
main/trunk/bin/repoman
Log:
When testing containment of elem[:1] in "MR", filter potential empty string
matches.
Modified: main/trunk/bin/repoman
===================================================================
--- main/trunk/bin/repoman 2008-08-07 14:00:24 UTC (rev 11343)
+++ main/trunk/bin/repoman 2008-08-07 22:08:24 UTC (rev 11344)
@@ -1676,7 +1676,7 @@
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.
reply other threads:[~2008-08-07 22:08 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=E1KRDej-0001cU-BG@stork.gentoo.org \
--to=zmedico@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox