mirror of
https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
synced 2025-05-09 09:31:30 +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]
|
del binaries['testing'][arch][1][j]
|
||||||
for p in undo['virtual']:
|
for p in undo['virtual']:
|
||||||
j, arch = p
|
j, arch = p
|
||||||
if j[0] == '-':
|
binaries['testing'][arch][1][j] = undo['virtual'][p]
|
||||||
del binaries['testing'][arch][1][j[1:]]
|
|
||||||
else:
|
|
||||||
binaries['testing'][arch][1][j] = undo['virtual'][p]
|
|
||||||
|
|
||||||
|
|
||||||
def old_libraries_format(libs):
|
def old_libraries_format(libs):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user