From: Mark Wooding Date: Sun, 10 May 2015 10:13:48 +0000 (+0100) Subject: check.d/50.updates: Output the list of updates. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/rcheck/commitdiff_plain/refs/heads/master?hp=4eccc107ad43c51d92b0a71b186973cf5a9f6cd0 check.d/50.updates: Output the list of updates. --- diff --git a/check.d/50.updates b/check.d/50.updates index 0444fa1..947610d 100755 --- a/check.d/50.updates +++ b/check.d/50.updates @@ -64,5 +64,7 @@ if sec: plural = len(sec) != 1 print 'W: security updates available for %d %s' % \ (len(sec), plural and 'packages' or 'package') +for pkg in sorted(updates, key = lambda p: p.name): + print 'I: %s %s' % (pkg in sec and '!' or ' ', pkg.name) ###----- That's all, folks --------------------------------------------------