~mdw
/
rcheck
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
check.d/50.updates: Output the list of updates.
[rcheck]
/
check.d
/
50.updates
diff --git
a/check.d/50.updates
b/check.d/50.updates
index
0444fa1
..
947610d
100755
(executable)
--- 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')
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 --------------------------------------------------
###----- That's all, folks --------------------------------------------------