xbps-src: adapt for xbps-0.10.0.
This commit is contained in:
parent
6b21e43ac4
commit
2299ca2aea
2 changed files with 27 additions and 8 deletions
|
@ -70,11 +70,17 @@ set_defvars()
|
|||
done
|
||||
|
||||
xver=$(xbps-bin.static -V|awk '{print $2}')
|
||||
if [ -n "$xver" ]; then
|
||||
# XBPS utils >= 0.9.0.
|
||||
case "${xver}" in
|
||||
0.1[0-9].[0-9]*)
|
||||
xbps_conf="-C $XBPS_MASTERDIR/usr/local/etc/xbps"
|
||||
;;
|
||||
0.[89].[0-9]*)
|
||||
# XBPS < 0.10.0
|
||||
xbps_conf="-C $XBPS_MASTERDIR/usr/local/etc/xbps-conf.plist"
|
||||
xbps_conf="$xbps_conf -c $XBPS_MASTERDIR/host/repocache"
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
xbps_conf="$xbps_conf -c $XBPS_MASTERDIR/host/repocache"
|
||||
|
||||
export XBPS_PKGDB_CMD="xbps-uhelper.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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue