xbps-src: added support for PREFER_BINPKG_DEPS with xbps >= 0.9.0.

This commit is contained in:
Juan RP 2011-06-24 22:00:47 +02:00
parent 8271950e94
commit 517f1cfd06
2 changed files with 22 additions and 7 deletions

View file

@ -61,10 +61,15 @@ set_defvars()
[ ! -d "$val" ] && mkdir -p $val
done
xver=$(xbps-bin.static -V|awk '{print $2}')
if [ -n "$xver" ]; then
# XBPS utils >= 0.9.0.
xbps_conf="-C $XBPS_MASTERDIR/usr/local/etc/xbps-conf.plist"
fi
export XBPS_PKGDB_CMD="xbps-uhelper.static -r $XBPS_MASTERDIR"
export XBPS_BIN_CMD="xbps-bin.static -r $XBPS_MASTERDIR"
export XBPS_BIN_CMD="xbps-bin.static $xbps_conf -r $XBPS_MASTERDIR"
export XBPS_REPO_CMD="xbps-repo.static $xbps_conf -r $XBPS_MASTERDIR"
export XBPS_DIGEST_CMD="xbps-uhelper.static digest"
export XBPS_CMPVER_CMD="xbps-uhelper.static cmpver"
export XBPS_FETCH_CMD="xbps-uhelper.static fetch"
export XBPS_REPO_CMD="xbps-repo.static"
}