Fix off-by-one; don't print useless "and 0 more" message.
authorFabian Groffen <grobian@gentoo.org>
Sat, 18 Sep 2010 09:53:04 +0000 (11:53 +0200)
committerFabian Groffen <grobian@gentoo.org>
Sat, 18 Sep 2010 09:53:04 +0000 (11:53 +0200)
pym/portage/util/__init__.py

index 248c33bf28fefd0d03a30a00b4466dc8b12efc02..fed229a5de6fd1b9fd8d1ac291a24144107cc6bd 100644 (file)
@@ -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)