From 4cfc17d09b81ebada74e8c992d5e4889a3711a91 Mon Sep 17 00:00:00 2001 From: "Adam D. Barratt" Date: Wed, 18 May 2011 18:28:50 +0000 Subject: [PATCH] Fix incorrect uninstallability counters caused by failed "easy" hints When undoing the removal of a binary package by an "easy" hint, ensure that the apt system is updated with the correct version of the package. Signed-off-by: Adam D. Barratt --- britney.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/britney.py b/britney.py index 32bff0a..118746a 100755 --- a/britney.py +++ b/britney.py @@ -2523,7 +2523,12 @@ class Britney: if binary[0] == "-": del self.binaries['testing'][arch][0][binary[1:]] self.systems[arch].remove_binary(binary[1:]) - else: self.binaries['testing'][arch][0][binary] = undo['binaries'][p] + else: + binaries = self.binaries['testing'][arch][0] + binaries[binary] = undo['binaries'][p] + self.systems[arch].remove_binary(binary) + self.systems[arch].add_binary(binary, binaries[binary][:PROVIDES] + \ + [", ".join(binaries[binary][PROVIDES]) or None]) for (undo, pkg, pkg_name, suite) in lundo: # undo the changes (virtual packages)