When in --keep-going mode, don't suppress the list of failed packages display
authorZac Medico <zmedico@gentoo.org>
Mon, 19 Jan 2009 09:57:35 +0000 (09:57 -0000)
committerZac Medico <zmedico@gentoo.org>
Mon, 19 Jan 2009 09:57:35 +0000 (09:57 -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.

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

pym/_emerge/__init__.py

index 814ce705244e175cf7721c4a5502870fffea040a..478faf2350ae6d803c5ce73feb47ce7d1b416312 100644 (file)
@@ -10357,7 +10357,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(" * ")