britney.py: Log when old libs are present but not removed

Signed-off-by: Niels Thykier <niels@thykier.net>
This commit is contained in:
Niels Thykier 2016-03-25 12:33:33 +00:00
parent b5db57715b
commit 28f69fa505

View File

@ -2624,16 +2624,17 @@ class Britney(object):
self.do_all(actions=removals) self.do_all(actions=removals)
# smooth updates # smooth updates
removals = old_libraries(self.sources, self.binaries, self.options.fucked_arches)
if self.options.smooth_updates: if self.options.smooth_updates:
self.log("> Removing old packages left in testing from smooth updates", type="I") self.log("> Removing old packages left in testing from smooth updates", type="I")
removals = old_libraries(self.sources, self.binaries, self.options.fucked_arches)
if removals: if removals:
self.output_write("Removing packages left in testing for smooth updates (%d):\n%s" % \ self.output_write("Removing packages left in testing for smooth updates (%d):\n%s" % \
(len(removals), old_libraries_format(removals))) (len(removals), old_libraries_format(removals)))
self.do_all(actions=removals) self.do_all(actions=removals)
removals = old_libraries(self.sources, self.binaries, self.options.fucked_arches) removals = old_libraries(self.sources, self.binaries, self.options.fucked_arches)
else: else:
removals = () self.log("> Not removing old packages left in testing from smooth updates (smooth-updates disabled)",
type="I")
self.output_write("List of old libraries in testing (%d):\n%s" % \ self.output_write("List of old libraries in testing (%d):\n%s" % \
(len(removals), old_libraries_format(removals))) (len(removals), old_libraries_format(removals)))