Understand ``multiple versions'' lines emitted from pkg_version.
This commit is contained in:
parent
23f02b4722
commit
a11ea16dad
@ -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;;
|
||||
|
Loading…
x
Reference in New Issue
Block a user