mirror of
https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
synced 2025-04-28 03:21:10 +00:00
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 <adam@adam-barratt.org.uk>
This commit is contained in:
parent
347022bb01
commit
4cfc17d09b
@ -2523,7 +2523,12 @@ class Britney:
|
|||||||
if binary[0] == "-":
|
if binary[0] == "-":
|
||||||
del self.binaries['testing'][arch][0][binary[1:]]
|
del self.binaries['testing'][arch][0][binary[1:]]
|
||||||
self.systems[arch].remove_binary(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:
|
for (undo, pkg, pkg_name, suite) in lundo:
|
||||||
# undo the changes (virtual packages)
|
# undo the changes (virtual packages)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user