When in --keep-going mode, don't suppress the list of failed packages display
authorZac Medico <zmedico@gentoo.org>
Wed, 11 Mar 2009 03:17:50 +0000 (03:17 -0000)
committerZac Medico <zmedico@gentoo.org>
Wed, 11 Mar 2009 03:17:50 +0000 (03:17 -0000)
at the end when there is only one failure, since the failure may have occurred
much earlier and the related output may not be visible any longer.
(trunk r12540)

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

pym/_emerge/__init__.py

index 6b3b680dd95f58f33427cd6bb3eba02dd88ef5a2..01998d8059a637c90725434760854c04fbfe2378 100644 (file)
@@ -10341,7 +10341,8 @@ class Scheduler(PollScheduler):
                        for msg in self._post_mod_echo_msgs:
                                msg()
 
-               if len(self._failed_pkgs_all) > 1:
+               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:"
                        prefix = bad(" * ")