Cope with ports that have multiple versions *and* have embedded ``-''s

in their name.
This commit is contained in:
brian 2001-01-02 15:17:59 +00:00
parent 3e7ec8ed40
commit 5920344071

View File

@ -18,7 +18,7 @@ case "$weekly_status_pkg_enable" in
rc=$(pkg_version -v |
sed -n -e 's/^\([^ ]*\) *< */ \1 /p' \
-e '/^[^-]*-\([^ ]*\) *\* *multiple versions.*[ ,]\1[,)].*/d' \
-e '/^[^ ]*-\([^ ]*\) *\* *multiple versions.*[ ,]\1[,)].*/d' \
-e 's/^\([^ ]*\) *\* *multiple versions.*\((.*\)/ \1 needs updating \2/p' |
tee /dev/stderr |
wc -l)