mirror of
https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
synced 2025-02-25 04:11:15 +00:00
britney_util: Replace broken if with an assert
Replace a "if" with an unconditionally false condition with a negative assert of the "correct" condition. The bug has been present for 2½ years with no known adverse effects. Signed-off-by: Niels Thykier <niels@thykier.net>
This commit is contained in:
parent
ec37bd06aa
commit
e92bbf386f
@ -148,9 +148,7 @@ def undo_changes(lundo, inst_tester, sources, binaries, all_binary_packages,
|
||||
inst_tester.remove_testing_binary(binary, version, arch)
|
||||
else:
|
||||
binaries_t_a = binaries['testing'][arch][0]
|
||||
if p in binaries_t_a:
|
||||
rmpkgdata = binaries_t_a[p]
|
||||
inst_tester.remove_testing_binary((binary, rmpkgdata.version, arch))
|
||||
assert binary not in binaries_t_a
|
||||
pkgdata = all_binary_packages[undo['binaries'][p]]
|
||||
binaries_t_a[binary] = pkgdata
|
||||
inst_tester.add_testing_binary((binary, pkgdata.version, arch))
|
||||
|
Loading…
x
Reference in New Issue
Block a user