diff options
author | Zac Medico <zmedico@gentoo.org> | 2009-02-19 21:45:01 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2009-02-19 21:45:01 +0000 |
commit | 482e05a008c88cf26535b5351bba7dad3b003c46 (patch) | |
tree | 051de1acdc87a4b2113db8f4b90df9b4f831c0c5 | |
parent | 42a7366b541ab389fd24d986292f3895a774ad0a (diff) | |
download | portage-482e05a008c88cf26535b5351bba7dad3b003c46.tar.gz portage-482e05a008c88cf26535b5351bba7dad3b003c46.tar.bz2 portage-482e05a008c88cf26535b5351bba7dad3b003c46.zip |
When displaying the list of failed packages, tell the number that failed.
Thanks to Jeremy Olexa <darkside@g.o> for the suggestion.
svn path=/main/trunk/; revision=12655
-rw-r--r-- | pym/_emerge/__init__.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py index be50a6386..63a99201a 100644 --- a/pym/_emerge/__init__.py +++ b/pym/_emerge/__init__.py @@ -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 |