svn commit: r258953 - stable/10/usr.sbin/bsdconfig/share

Glen Barber gjb at FreeBSD.org
Thu Dec 5 01:06:05 UTC 2013


Author: gjb
Date: Thu Dec  5 01:06:05 2013
New Revision: 258953
URL: http://svnweb.freebsd.org/changeset/base/258953

Log:
  MFC r258854:
    Fix PKG_ABI detection in bsdconfig(8) after pkg-1.2 is released, since
    the format of 'pkg -vv' output has changed.
  
  Approved by:	re (hrs)
  Sponsored by:	The FreeBSD Foundation

Modified:
  stable/10/usr.sbin/bsdconfig/share/common.subr
Directory Properties:
  stable/10/usr.sbin/bsdconfig/   (props changed)

Modified: stable/10/usr.sbin/bsdconfig/share/common.subr
==============================================================================
--- stable/10/usr.sbin/bsdconfig/share/common.subr	Thu Dec  5 00:59:29 2013	(r258952)
+++ stable/10/usr.sbin/bsdconfig/share/common.subr	Thu Dec  5 01:06:05 2013	(r258953)
@@ -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
 


More information about the svn-src-all mailing list