svn commit: r258854 - head/usr.sbin/bsdconfig/share
Baptiste Daroussin
bapt at FreeBSD.org
Wed Dec 4 09:12:55 UTC 2013
On Mon, Dec 02, 2013 at 07:02:59PM +0000, Glen Barber wrote:
> Author: gjb
> Date: Mon Dec 2 19:02:58 2013
> New Revision: 258854
> URL: http://svnweb.freebsd.org/changeset/base/258854
>
> Log:
> Fix PKG_ABI detection in bsdconfig(8) after pkg-1.2 is released, since
> the format of 'pkg -vv' output has changed.
>
> MFC after: 3 days
> Sponsored by: The FreeBSD Foundation
>
> Modified:
> head/usr.sbin/bsdconfig/share/common.subr
>
> Modified: head/usr.sbin/bsdconfig/share/common.subr
> ==============================================================================
> --- head/usr.sbin/bsdconfig/share/common.subr Mon Dec 2 18:47:57 2013 (r258853)
> +++ head/usr.sbin/bsdconfig/share/common.subr Mon Dec 2 19:02:58 2013 (r258854)
> @@ -65,7 +65,7 @@ export UNAME_R="$(uname -r)" # Release L
> if [ ! "${PKG_ABI+set}" ]; then
> export PKG_ABI="$(
> ASSUME_ALWAYS_YES=1 pkg -vv |
> - awk '$1=="ABI:"{print $2;exit}' 2> /dev/null
> + awk '$1=="ABI"{print $3;exit}' 2> /dev/null
> )"
> fi
You have:
"pkg config abi" now :) that should allow you do avoid the awk :)
regards,
Bapt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/svn-src-head/attachments/20131204/3fb6c32f/attachment.sig>
More information about the svn-src-head
mailing list