aboutsummaryrefslogtreecommitdiff
path: root/etc/periodic/weekly
diff options
context:
space:
mode:
authorBrian Somers <brian@FreeBSD.org>2001-01-02 13:28:47 +0000
committerBrian Somers <brian@FreeBSD.org>2001-01-02 13:28:47 +0000
commit7d9e9f88844847e0d36f401b83a71ea2e72f319a (patch)
tree96768dab06a4d19bedb2ef049ffca802fcd41411 /etc/periodic/weekly
parent1550c317bfca945d27c5f87a4a6da64b78fecbe6 (diff)
downloadsrc-7d9e9f88844847e0d36f401b83a71ea2e72f319a.tar.gz
src-7d9e9f88844847e0d36f401b83a71ea2e72f319a.zip
Understand ``multiple versions'' lines emitted from pkg_version.
Notes
Notes: svn path=/head/; revision=70600
Diffstat (limited to 'etc/periodic/weekly')
-rwxr-xr-xetc/periodic/weekly/400.status-pkg4
1 files changed, 3 insertions, 1 deletions
diff --git a/etc/periodic/weekly/400.status-pkg b/etc/periodic/weekly/400.status-pkg
index 050b47b8ae5b..3bbe03ff9cbe 100755
--- a/etc/periodic/weekly/400.status-pkg
+++ b/etc/periodic/weekly/400.status-pkg
@@ -17,7 +17,9 @@ case "$weekly_status_pkg_enable" in
echo "Check for out of date packages:"
rc=$(pkg_version -v |
- sed -n 's/^\([^ ]*\) *< */ \1 /p' |
+ sed -n -e 's/^\([^ ]*\) *< */ \1 /p' \
+ -e '/^[^-]*-\([^ ]*\) *\* *multiple versions.*[ ,]\1[,)].*/d' \
+ -e 's/^\([^ ]*\) *\* *multiple versions.*\((.*\)/ \1 needs updating \2/p' |
tee /dev/stderr |
wc -l)
[ $rc -gt 1 ] && rc=1;;