mirror of
https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
synced 2025-07-06 22:11:28 +00:00
Stop creating some throw-away data-structures for a method call
Signed-off-by: Niels Thykier <niels@thykier.net>
This commit is contained in:
parent
f86cda97da
commit
b37575f000
@ -1460,7 +1460,7 @@ class Britney(object):
|
|||||||
# on a subset of all nobreak architectures).
|
# on a subset of all nobreak architectures).
|
||||||
# This forgivness is only done if the package is already in testing AND it is broken
|
# This forgivness is only done if the package is already in testing AND it is broken
|
||||||
# in testing on this architecture already. Anything else would be a regression
|
# in testing on this architecture already. Anything else would be a regression
|
||||||
if inst_tester.any_of_these_are_in_testing({pkg_id}) and not inst_tester.is_installable(pkg_id):
|
if inst_tester.is_pkg_in_testing(pkg_id) and not inst_tester.is_installable(pkg_id):
|
||||||
# It is a regression.
|
# It is a regression.
|
||||||
excuse.policy_verdict = PolicyVerdict.REJECTED_PERMANENTLY
|
excuse.policy_verdict = PolicyVerdict.REJECTED_PERMANENTLY
|
||||||
|
|
||||||
|
@ -140,7 +140,7 @@ def undo_changes(lundo, inst_tester, suite_info, all_binary_packages):
|
|||||||
# If this happens, pkg_id must be a cruft item that
|
# If this happens, pkg_id must be a cruft item that
|
||||||
# was *not* migrated.
|
# was *not* migrated.
|
||||||
assert source_data.version != all_binary_packages[pkg_id].version
|
assert source_data.version != all_binary_packages[pkg_id].version
|
||||||
assert not inst_tester.any_of_these_are_in_testing((pkg_id,))
|
assert not inst_tester.is_pkg_in_testing(pkg_id)
|
||||||
inst_tester.remove_testing_binary(pkg_id)
|
inst_tester.remove_testing_binary(pkg_id)
|
||||||
|
|
||||||
# STEP 3
|
# STEP 3
|
||||||
|
Loading…
x
Reference in New Issue
Block a user