It is entirely possible that pkg is present but not installed as a

package, or that the pkg binary in $PATH is not the one that was
installed (e.g. a development version in $HOME/bin/pkg).  Therefore,
use pkg -vv rather than pkg query to determine the pkg version.


git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@733 185d5e19-27fe-0310-9dcf-9bff6b9f3609
This commit is contained in:
Dag-Erling Smørgrav 2013-08-23 17:07:42 +00:00
parent 7eacdef3fd
commit 3bc114befa
1 changed files with 1 additions and 1 deletions

View File

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