mirror of
https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
synced 2025-06-05 06:41:33 +00:00
compute_groups: rename badly named source_name
When the item is a cruft removal item, the variable contains the binary name, not the source name. So rename it to item_package and set source_name, to the source in both cases. Signed-off-by: Ivo De Decker <ivodd@debian.org>
This commit is contained in:
parent
fdf273ad05
commit
e3af8993be
@ -92,7 +92,7 @@ class MigrationManager(object):
|
|||||||
any data structure.
|
any data structure.
|
||||||
"""
|
"""
|
||||||
# local copies for better performances
|
# local copies for better performances
|
||||||
source_name = item.package
|
item_package = item.package
|
||||||
target_suite = self.suite_info.target_suite
|
target_suite = self.suite_info.target_suite
|
||||||
binaries_t = target_suite.binaries
|
binaries_t = target_suite.binaries
|
||||||
|
|
||||||
@ -100,6 +100,7 @@ class MigrationManager(object):
|
|||||||
|
|
||||||
# remove all binary packages (if the source already exists)
|
# remove all binary packages (if the source already exists)
|
||||||
if item.architecture == 'source' or not item.is_removal:
|
if item.architecture == 'source' or not item.is_removal:
|
||||||
|
source_name = item_package
|
||||||
if source_name in target_suite.sources:
|
if source_name in target_suite.sources:
|
||||||
rms, smoothbins = self._compute_removals(item, allow_smooth_updates, removals)
|
rms, smoothbins = self._compute_removals(item, allow_smooth_updates, removals)
|
||||||
else:
|
else:
|
||||||
@ -109,9 +110,9 @@ class MigrationManager(object):
|
|||||||
# single binary removal; used for clearing up after smooth
|
# single binary removal; used for clearing up after smooth
|
||||||
# updates but not supported as a manual hint
|
# updates but not supported as a manual hint
|
||||||
else:
|
else:
|
||||||
assert source_name in binaries_t[item.architecture]
|
assert item_package in binaries_t[item.architecture]
|
||||||
pkg_id = binaries_t[item.architecture][source_name].pkg_id
|
pkg_id = binaries_t[item.architecture][item_package].pkg_id
|
||||||
source_name = binaries_t[item.architecture][source_name].source
|
source_name = binaries_t[item.architecture][item_package].source
|
||||||
rms = {pkg_id}
|
rms = {pkg_id}
|
||||||
smoothbins = set()
|
smoothbins = set()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user