mirror of
https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
synced 2025-05-08 00:51:36 +00:00
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 <niels@thykier.net>
This commit is contained in:
parent
9c3d0afaf5
commit
3b610160ad
@ -2332,7 +2332,6 @@ class Britney(object):
|
|||||||
self.output_write("trying: %s\n" % comp_name)
|
self.output_write("trying: %s\n" % comp_name)
|
||||||
accepted, nuninst_after, comp_undo, failed_arch = self.try_migration(comp, nuninst_last_accepted, lundo)
|
accepted, nuninst_after, comp_undo, failed_arch = self.try_migration(comp, nuninst_last_accepted, lundo)
|
||||||
if accepted:
|
if accepted:
|
||||||
nuninst_last_accepted = nuninst_after
|
|
||||||
selected.extend(comp)
|
selected.extend(comp)
|
||||||
changed = True
|
changed = True
|
||||||
if lundo is not None:
|
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)))
|
self.output_write(" all: %s\n" % (" ".join(x.uvname for x in selected)))
|
||||||
else:
|
else:
|
||||||
self.output_write(" most: (%d) .. %s\n" % (len(selected), " ".join(x.uvname for x in selected[-20:])))
|
self.output_write(" most: (%d) .. %s\n" % (len(selected), " ".join(x.uvname for x in selected[-20:])))
|
||||||
|
nuninst_last_accepted = nuninst_after
|
||||||
else:
|
else:
|
||||||
broken = sorted(b for b in nuninst_after[failed_arch]
|
broken = sorted(b for b in nuninst_after[failed_arch]
|
||||||
if b not in nuninst_last_accepted[failed_arch])
|
if b not in nuninst_last_accepted[failed_arch])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user