xbps-triggers: virtualpkg: more slash substs.

This commit is contained in:
Juan RP 2011-12-15 20:15:42 +01:00
parent c4914f3990
commit 750fa84ff1
2 changed files with 3 additions and 3 deletions

View file

@ -25,11 +25,11 @@ run)
[ -z "$CONF_FILE" ] && CONF_FILE=etc/xbps/xbps.conf
[ ! -w $CONF_FILE ] && exit 0
confdir=$(dirname $CONF_FILE)
confdir=$(dirname "/$CONF_FILE")
if [ "${TARGET}" = "post-install" ]; then
echo "Enabled $PKGNAME virtual packages to $CONF_FILE."
echo "include(/$confdir/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."

View file

@ -1,6 +1,6 @@
# Template file for 'xbps-triggers'
pkgname=xbps-triggers
version=0.34
version=0.35
short_desc="XBPS triggers"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://code.google.com/p/xbps"