diff options
author | Antoine Beaupré <anarcat@debian.org> | 2018-11-22 11:37:23 -0500 |
---|---|---|
committer | Antoine Beaupré <anarcat@debian.org> | 2018-11-22 11:52:53 -0500 |
commit | 760e8549a2ae9f986e38ab25ec7f08c59d7135ae (patch) | |
tree | 689760a51f3ca42ec560a8343ef248c649c5380a /bin | |
parent | 87d74947a58d896fadc83f11249b00be13847fe3 (diff) |
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 <holger@layer-acht.org>
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/review-update-needed | 1 |
1 files changed, 1 insertions, 0 deletions
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']: |