xbps-triggers: make virtualpkg trigger a noop; unneeded with xbps-0.18.
This commit is contained in:
parent
ebfbddfa04
commit
1033652449
2 changed files with 4 additions and 8 deletions
|
@ -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
|
||||
|
|
|
@ -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>"
|
||||
|
|
Loading…
Reference in a new issue