@ -92,7 +92,7 @@ class MigrationManager(object):
any data structure .
any data structure .
"""
"""
# local copies for better performances
# local copies for better performances
source_nam e = item . package
item_packag e = 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_nam e in binaries_t [ item . architecture ]
assert item_packag e in binaries_t [ item . architecture ]
pkg_id = binaries_t [ item . architecture ] [ source_nam e] . pkg_id
pkg_id = binaries_t [ item . architecture ] [ item_packag e] . pkg_id
source_name = binaries_t [ item . architecture ] [ source_nam e] . source
source_name = binaries_t [ item . architecture ] [ item_packag e] . source
rms = { pkg_id }
rms = { pkg_id }
smoothbins = set ( )
smoothbins = set ( )