public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Zac Medico (zmedico)" <zmedico@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] portage r12923 - main/branches/2.1.6/pym/_emerge
Date: Wed, 11 Mar 2009 05:57:55 +0000	[thread overview]
Message-ID: <E1LhHRz-0001lk-7s@stork.gentoo.org> (raw)

Author: zmedico
Date: 2009-03-11 05:57:54 +0000 (Wed, 11 Mar 2009)
New Revision: 12923

Modified:
   main/branches/2.1.6/pym/_emerge/__init__.py
Log:
When displaying the list of failed packages, tell the number that failed.
Thanks to Jeremy Olexa <darkside@g.o> for the suggestion. (trunk r12655)

Modified: main/branches/2.1.6/pym/_emerge/__init__.py
===================================================================
--- main/branches/2.1.6/pym/_emerge/__init__.py	2009-03-11 05:57:35 UTC (rev 12922)
+++ main/branches/2.1.6/pym/_emerge/__init__.py	2009-03-11 05:57:54 UTC (rev 12923)
@@ -10640,8 +10640,13 @@
 
 		if len(self._failed_pkgs_all) > 1 or \
 			(self._failed_pkgs_all and "--keep-going" in self.myopts):
-			msg = "The following packages have " + \
-				"failed to build or install:"
+			if len(self._failed_pkgs_all) > 1:
+				msg = "The following %d packages have " % \
+					len(self._failed_pkgs_all) + \
+					"failed to build or install:"
+			else:
+				msg = "The following package has " + \
+					"failed to build or install:"
 			prefix = bad(" * ")
 			writemsg(prefix + "\n", noiselevel=-1)
 			from textwrap import wrap




                 reply	other threads:[~2009-03-11  5:57 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=E1LhHRz-0001lk-7s@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