From 3b610160ad0cbf3f836701dc14da91adc92311fb Mon Sep 17 00:00:00 2001 From: Niels Thykier Date: Sun, 20 Sep 2015 14:56:22 +0200 Subject: [PATCH] britney.py: Update nuninst after writing the "accepted" stats Otherwise "pre" and "now" will always show exactly the same numbers. Signed-off-by: Niels Thykier --- britney.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/britney.py b/britney.py index b75dd2d..6fd1917 100755 --- a/britney.py +++ b/britney.py @@ -2332,7 +2332,6 @@ class Britney(object): self.output_write("trying: %s\n" % comp_name) accepted, nuninst_after, comp_undo, failed_arch = self.try_migration(comp, nuninst_last_accepted, lundo) if accepted: - nuninst_last_accepted = nuninst_after selected.extend(comp) changed = True if lundo is not None: @@ -2345,6 +2344,7 @@ class Britney(object): self.output_write(" all: %s\n" % (" ".join(x.uvname for x in selected))) else: self.output_write(" most: (%d) .. %s\n" % (len(selected), " ".join(x.uvname for x in selected[-20:]))) + nuninst_last_accepted = nuninst_after else: broken = sorted(b for b in nuninst_after[failed_arch] if b not in nuninst_last_accepted[failed_arch])