When displaying the list of failed packages, tell the number that failed.
authorZac Medico <zmedico@gentoo.org>
Thu, 19 Feb 2009 21:45:01 +0000 (21:45 -0000)
committerZac Medico <zmedico@gentoo.org>
Thu, 19 Feb 2009 21:45:01 +0000 (21:45 -0000)
Thanks to Jeremy Olexa <darkside@g.o> for the suggestion.

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

pym/_emerge/__init__.py

index be50a6386389e89199617f7c9b4e8dd68a52ee9e..63a99201a858f2cb2687ea273a6ed8c567680344 100644 (file)
@@ -10656,8 +10656,13 @@ class Scheduler(PollScheduler):
 
                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