From 5c97790c7b48f7def7454ea6c8b63edc6ad7b9e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antoine=20Beaupr=C3=A9?= Date: Thu, 22 Nov 2018 11:37:23 -0500 Subject: inline explanation for why a package is unclaimed A little more verbose explanation will help in diagnosing why a specific package was unclaimed. It also shows the exact diff that was used for comparison and the requested delay. Requested-by: Holger Levsen --- bin/review-update-needed | 1 + 1 file changed, 1 insertion(+) (limited to 'bin') diff --git a/bin/review-update-needed b/bin/review-update-needed index 976c0e9c82..8b7753885d 100755 --- a/bin/review-update-needed +++ b/bin/review-update-needed @@ -133,6 +133,7 @@ for entry in all_entries: date_to_format = datetime.utcfromtimestamp(entry['claimed-date']) if datetime.utcnow() - date_to_format > unclaim_delta: unclaim_pkgs.append(entry['pkg']) + args.quiet or print("Unclaimed: idle for more than {}: {}".format(unclaim_delta, datetime.utcnow() - date_to_format)) else: args.quiet or print("Unclaimed-Since: {}".format(format_date(entry['claimed-date']))) if entry['last-update'] > entry['claimed-date']: -- cgit v1.2.3