From c7cfb4e09f4c5ceb9f3ef8918d76531eb03f83ce Mon Sep 17 00:00:00 2001 From: Ivo De Decker Date: Mon, 2 Sep 2019 19:03:41 +0000 Subject: [PATCH] Log new cruft items added to the list of items Signed-off-by: Ivo De Decker --- britney.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/britney.py b/britney.py index 09286f3..4f03576 100755 --- a/britney.py +++ b/britney.py @@ -861,6 +861,10 @@ class Britney(object): output_logger.info(" ori: %s", self.eval_nuninst(nuninst_orig)) output_logger.info(" pre: %s", self.eval_nuninst(nuninst_last_accepted)) output_logger.info(" now: %s", self.eval_nuninst(nuninst_after)) + if new_cruft: + output_logger.info(" added new cruft items to list: %s", + " ".join(x.uvname for x in new_cruft)) + if len(selected) <= 20: output_logger.info(" all: %s", " ".join(x.uvname for x in selected)) else: @@ -993,7 +997,10 @@ class Britney(object): else: # On non-recursive hints check for cruft and purge it proactively in case it "fixes" the hint. cruft = [x for x in upgrade_me if x.is_cruft_removal] - cruft.extend(new_cruft) + if new_cruft: + output_logger.info("Change added new cruft items to list: %s", + " ".join(x.uvname for x in new_cruft)) + cruft.extend(new_cruft) if cruft: output_logger.info("Checking if changes enables cruft removal") (nuninst_end, remaining_cruft) = self.iter_packages(cruft,