xbps-triggers: virtualpkg: fix virtualpkg.d path.
This commit is contained in:
parent
61bf0c667a
commit
4b79e4c5c1
2 changed files with 4 additions and 2 deletions
|
@ -25,9 +25,11 @@ run)
|
|||
[ -z "$CONF_FILE" ] && CONF_FILE=etc/xbps/xbps.conf
|
||||
[ ! -w $CONF_FILE ] && exit 0
|
||||
|
||||
confdir=$(dirname ./$CONF_FILE)
|
||||
|
||||
if [ "${TARGET}" = "post-install" ]; then
|
||||
echo "Enabled $PKGNAME virtual packages to $CONF_FILE."
|
||||
echo "include(./$CONF_FILE/virtualpkg.d/$PKGNAME.conf)" >> $CONF_FILE
|
||||
echo "include(/$confdir/virtualpkg.d/$PKGNAME.conf)" >> $CONF_FILE
|
||||
else
|
||||
sed -i "/include.*$PKGNAME.conf.*/d" $CONF_FILE
|
||||
echo "Disabled $PKGNAME virtual packages from $CONF_FILE."
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# Template file for 'xbps-triggers'
|
||||
pkgname=xbps-triggers
|
||||
version=0.32
|
||||
version=0.33
|
||||
short_desc="XBPS triggers"
|
||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||
homepage="http://code.google.com/p/xbps"
|
||||
|
|
Loading…
Reference in a new issue