[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CVS: cvs.openbsd.org: src



On Tue, May 22, 2001 at 03:03:13AM +0100, Brian Somers wrote:
> +	echo ""
> +	echo "Checking for out of date packages:"
> +	pkg_version -v |
> +	    sed -n -e 's/^\([^ ]*\)  *<  */  \1 /p' \
> +	    -e '/^[^ ]*-\([^ ]*\)  *\* *multiple versions.*[ ,]\1[,)].*/d' \
> +	    -e 's/^\([^ ]*\)  *\* *multiple versions.*\((.*\)/  \1 needs updating \2/p' \
> +	    -e 's/^\([^ ]*-[^ ]*\)  *? *unknown in index/  \1 is obsolete/p'

i don't like the sed filtering here.

change pkg_version to print a different message, or drop sed.