check.d/50.updates: Output the list of updates. master
authorMark Wooding <mdw@distorted.org.uk>
Sun, 10 May 2015 10:13:48 +0000 (11:13 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Sun, 10 May 2015 10:13:48 +0000 (11:13 +0100)
check.d/50.updates

index 0444fa1..947610d 100755 (executable)
@@ -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 --------------------------------------------------