From: Fabian Groffen Date: Sat, 18 Sep 2010 09:53:04 +0000 (+0200) Subject: Fix off-by-one; don't print useless "and 0 more" message. X-Git-Tag: v2.2_rc84~12 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=33e225f07b92786428f20fc5d40cd09364dfc4a5;p=portage.git Fix off-by-one; don't print useless "and 0 more" message. --- 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)