Update the way we extract the pkg version and ABI to match pkg 1.2.

Submitted by:	bapt@freebsd.org


git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@749 185d5e19-27fe-0310-9dcf-9bff6b9f3609
This commit is contained in:
Dag-Erling Smørgrav 2014-01-13 21:26:25 +00:00
parent d9f3164b53
commit d68deb210c
1 changed files with 2 additions and 2 deletions

View File

@ -69,9 +69,9 @@ cd "$srcdir"
#
# Determine pkgng version and ABI
#
pkgver=$(pkg -vv | awk '$1 == "Version:" { print $2 }')
pkgver=$(pkg -v)
[ -n "$pkgver" ] || error "Unable to determine pkgng version."
pkgabi=$(pkg -vv | awk '$1 == "ABI:" { print $2 }')
pkgabi=$(pkg config abi)
[ -n "$pkgabi" ] || error "Unable to determine package ABI."
#