Unconditionally cleanup cruft/smooth updates

If people do not use these features then there will be nothing to
remove anyway.

Signed-off-by: Niels Thykier <niels@thykier.net>
ubuntu/rebased
Niels Thykier 6 years ago
parent b200c15062
commit d4bdccf021
No known key found for this signature in database
GPG Key ID: A65B78DBE67C7AAC

@ -1807,16 +1807,11 @@ class Britney(object):
# smooth updates
removals = old_libraries(self._migration_item_factory, self.suite_info, self.options.outofsync_arches)
if self.options.smooth_updates:
self.logger.info("> Removing old packages left in the target suite from smooth updates")
if removals:
output_logger.info("Removing packages left in the target suite for smooth updates (%d):", len(removals))
log_and_format_old_libraries(self.output_logger, removals)
self.do_all(actions=removals)
removals = old_libraries(self._migration_item_factory, self.suite_info, self.options.outofsync_arches)
else:
self.logger.info("> Not removing old packages left in the target suite from smooth updates"
" (smooth-updates disabled)")
if removals:
output_logger.info("Removing packages left in the target suite (e.g. smooth updatees or cruft)")
log_and_format_old_libraries(self.output_logger, removals)
self.do_all(actions=removals)
removals = old_libraries(self._migration_item_factory, self.suite_info, self.options.outofsync_arches)
output_logger.info("List of old libraries in the target suite (%d):", len(removals))
log_and_format_old_libraries(self.output_logger, removals)

Loading…
Cancel
Save