mirror of
https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
synced 2025-03-12 20:01:08 +00:00
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>
This commit is contained in:
parent
b200c15062
commit
d4bdccf021
15
britney.py
15
britney.py
@ -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…
x
Reference in New Issue
Block a user