xbps-triggers: make virtualpkg trigger a noop; unneeded with xbps-0.18.

This commit is contained in:
Juan RP 2012-11-19 16:11:22 +01:00
parent ebfbddfa04
commit 1033652449
2 changed files with 4 additions and 8 deletions

View file

@ -1,5 +1,7 @@
#!/bin/sh
#
# This trigger is obsolete in xbps>=0.18.
#
# Enables or disables a virtual package to xbps.conf.
#
# Arguments: $ACTION = [run/targets]
@ -22,13 +24,7 @@ targets)
echo "post-install post-remove"
;;
run)
[ -z "$CONF_FILE" ] && CONF_FILE=etc/xbps/xbps.conf
[ ! -w $CONF_FILE ] && exit 0
sed -i "/^include.*\/etc\/xbps\/virtualpkg.d\/.*/d" ./$CONF_FILE
for f in etc/xbps/virtualpkg.d/*.conf; do
echo "include(/$f)" >> ./$CONF_FILE
done
# Do nothing, keep it just for compatibility.
;;
*)
exit 1

View file

@ -1,6 +1,6 @@
# Template file for 'xbps-triggers'
pkgname=xbps-triggers
version=0.53
version=0.54
revision=1
short_desc="XBPS triggers"
maintainer="Juan RP <xtraeme@gmail.com>"