From 33e225f07b92786428f20fc5d40cd09364dfc4a5 Mon Sep 17 00:00:00 2001 From: Fabian Groffen Date: Sat, 18 Sep 2010 11:53:04 +0200 Subject: Fix off-by-one; don't print useless "and 0 more" message. --- pym/portage/util/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pym/portage/util/__init__.py b/pym/portage/util/__init__.py index 248c33bf2..fed229a5d 100644 --- a/pym/portage/util/__init__.py +++ b/pym/portage/util/__init__.py @@ -271,7 +271,7 @@ def stack_lists(lists, incremental=1, remember_source_file=False, if warn_for_unmatched_removal: for source_file, tokens in unmatched_removals.items(): - if len(tokens) > 3: + if len(tokens) > 4: selected = [tokens.pop(), tokens.pop(), tokens.pop()] writemsg(_("--- Unmatch removal atoms in %s: %s and %s more\n") % (source_file, ", ".join(selected), len(tokens)-3), noiselevel=-1) -- cgit v1.2.3-1-g7c22