chiark
/
gitweb
/
~mdw
/
rcheck
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
4eccc10
)
check.d/50.updates: Output the list of updates.
master
author
Mark Wooding
<mdw@distorted.org.uk>
Sun, 10 May 2015 10:13:48 +0000
(11:13 +0100)
committer
Mark Wooding
<mdw@distorted.org.uk>
Sun, 10 May 2015 10:13:48 +0000
(11:13 +0100)
check.d/50.updates
patch
|
blob
|
blame
|
history
diff --git
a/check.d/50.updates
b/check.d/50.updates
index 0444fa188b26b6442d6d68c94f415a7c4e4c8667..947610d4f25411bd8d7ff0953168ba53c6fa1d26 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')
+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 --------------------------------------------------