From ace1b15b130fc1633cd42add26c5110629f14d41 Mon Sep 17 00:00:00 2001 From: Mark Wooding Date: Sun, 10 May 2015 11:13:48 +0100 Subject: [PATCH] check.d/50.updates: Output the list of updates. --- check.d/50.updates | 2 ++ 1 file changed, 2 insertions(+) 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 -------------------------------------------------- -- 2.11.0