mirror of
https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
synced 2025-02-10 14:07:29 +00:00
undo_changes: Simplify case for virtual packages
doop_source never (no longer?) creates an element in "virtual" where the package name is prefixed with "-", so we can drop that branch. Signed-off-by: Niels Thykier <niels@thykier.net>
This commit is contained in:
parent
1f1086b929
commit
2d8a471f70
@ -158,10 +158,7 @@ def undo_changes(lundo, inst_tester, sources, binaries, all_binary_packages):
|
||||
del binaries['testing'][arch][1][j]
|
||||
for p in undo['virtual']:
|
||||
j, arch = p
|
||||
if j[0] == '-':
|
||||
del binaries['testing'][arch][1][j[1:]]
|
||||
else:
|
||||
binaries['testing'][arch][1][j] = undo['virtual'][p]
|
||||
binaries['testing'][arch][1][j] = undo['virtual'][p]
|
||||
|
||||
|
||||
def old_libraries_format(libs):
|
||||
|
Loading…
x
Reference in New Issue
Block a user