xbps-triggers: make virtualpkg trigger a noop; unneeded with xbps-0.18.
This commit is contained in:
parent
ebfbddfa04
commit
1033652449
|
@ -1,5 +1,7 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
#
|
#
|
||||||
|
# This trigger is obsolete in xbps>=0.18.
|
||||||
|
#
|
||||||
# Enables or disables a virtual package to xbps.conf.
|
# Enables or disables a virtual package to xbps.conf.
|
||||||
#
|
#
|
||||||
# Arguments: $ACTION = [run/targets]
|
# Arguments: $ACTION = [run/targets]
|
||||||
|
@ -22,13 +24,7 @@ targets)
|
||||||
echo "post-install post-remove"
|
echo "post-install post-remove"
|
||||||
;;
|
;;
|
||||||
run)
|
run)
|
||||||
[ -z "$CONF_FILE" ] && CONF_FILE=etc/xbps/xbps.conf
|
# Do nothing, keep it just for compatibility.
|
||||||
[ ! -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
|
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
exit 1
|
exit 1
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# Template file for 'xbps-triggers'
|
# Template file for 'xbps-triggers'
|
||||||
pkgname=xbps-triggers
|
pkgname=xbps-triggers
|
||||||
version=0.53
|
version=0.54
|
||||||
revision=1
|
revision=1
|
||||||
short_desc="XBPS triggers"
|
short_desc="XBPS triggers"
|
||||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||||
|
|
Loading…
Reference in a new issue