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:
parent
7eacdef3fd
commit
3bc114befa
|
@ -69,7 +69,7 @@ cd "$srcdir"
|
||||||
#
|
#
|
||||||
# Determine pkgng version and ABI
|
# 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."
|
[ -n "$pkgver" ] || error "Unable to determine pkgng version."
|
||||||
pkgabi=$(pkg -vv | awk '$1 == "ABI:" { print $2 }')
|
pkgabi=$(pkg -vv | awk '$1 == "ABI:" { print $2 }')
|
||||||
[ -n "$pkgabi" ] || error "Unable to determine package ABI."
|
[ -n "$pkgabi" ] || error "Unable to determine package ABI."
|
||||||
|
|
Loading…
Reference in New Issue