mirror of
https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
synced 2025-04-07 17:21:22 +00:00
Rename migrate_item{,s}_to_target_suite
It accepts multiple items, so using a singular "item" seems like a misfeature. Signed-off-by: Niels Thykier <niels@thykier.net>
This commit is contained in:
parent
98d4553185
commit
73791e48d0
@ -1475,7 +1475,7 @@ class Britney(object):
|
||||
with mm.start_transaction() as transaction:
|
||||
accepted = False
|
||||
try:
|
||||
accepted, nuninst_after, failed_arch, new_cruft = mm.migrate_item_to_target_suite(
|
||||
accepted, nuninst_after, failed_arch, new_cruft = mm.migrate_items_to_target_suite(
|
||||
comp,
|
||||
nuninst_last_accepted
|
||||
)
|
||||
@ -1607,9 +1607,9 @@ class Britney(object):
|
||||
|
||||
if init:
|
||||
# init => a hint (e.g. "easy") - so do the hint run
|
||||
(_, nuninst_end, _, new_cruft) = mm.migrate_item_to_target_suite(selected,
|
||||
self.nuninst_orig,
|
||||
stop_on_first_regression=False)
|
||||
(_, nuninst_end, _, new_cruft) = mm.migrate_items_to_target_suite(selected,
|
||||
self.nuninst_orig,
|
||||
stop_on_first_regression=False)
|
||||
|
||||
if recurse:
|
||||
# Ensure upgrade_me and selected do not overlap, if we
|
||||
|
@ -88,7 +88,7 @@ class MigrationManager(object):
|
||||
InstallabilityTester.
|
||||
|
||||
|
||||
Unlike migrate_item_to_target_suite, this will not modify
|
||||
Unlike migrate_items_to_target_suite, this will not modify
|
||||
any data structure.
|
||||
"""
|
||||
# local copies for better performances
|
||||
@ -401,7 +401,7 @@ class MigrationManager(object):
|
||||
|
||||
return is_source_migration, affected_architectures, affected_direct, affected_all, smooth_updates
|
||||
|
||||
def migrate_item_to_target_suite(self, items, nuninst_now, stop_on_first_regression=True):
|
||||
def migrate_items_to_target_suite(self, items, nuninst_now, stop_on_first_regression=True):
|
||||
is_accepted = True
|
||||
target_suite = self.suite_info.target_suite
|
||||
packages_t = target_suite.binaries
|
||||
|
Loading…
x
Reference in New Issue
Block a user