When displaying the list of failed packages, tell the number that failed.
authorZac Medico <zmedico@gentoo.org>
Wed, 11 Mar 2009 05:57:54 +0000 (05:57 -0000)
committerZac Medico <zmedico@gentoo.org>
Wed, 11 Mar 2009 05:57:54 +0000 (05:57 -0000)
Thanks to Jeremy Olexa <darkside@g.o> for the suggestion. (trunk r12655)

svn path=/main/branches/2.1.6/; revision=12923

pym/_emerge/__init__.py

index b2e5c37fca8b81a442c51b0f0e14c6d2bbbf8d27..2b80a41d58998d56e4da5c1090a7bc390e7ee24a 100644 (file)
@@ -10640,8 +10640,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