mirror of
https://github.com/void-linux/void-packages.git
synced 2025-07-31 18:02:57 +02:00
xbps-triggers: [virtualpkg] handle all vpkg files.
This commit is contained in:
parent
32b0f86b14
commit
9b7aa80f24
2 changed files with 5 additions and 12 deletions
|
@ -25,17 +25,10 @@ run)
|
||||||
[ -z "$CONF_FILE" ] && CONF_FILE=etc/xbps/xbps.conf
|
[ -z "$CONF_FILE" ] && CONF_FILE=etc/xbps/xbps.conf
|
||||||
[ ! -w $CONF_FILE ] && exit 0
|
[ ! -w $CONF_FILE ] && exit 0
|
||||||
|
|
||||||
if [ "${TARGET}" = "post-install" ]; then
|
sed -i "/^include.*\/etc\/xbps\/virtualpkg.d\/.*/d" ./$CONF_FILE
|
||||||
if [ "$UPDATE" = "yes" ]; then
|
for f in etc/xbps/virtualpkg.d/*.conf; do
|
||||||
# do nothing
|
echo "include(/$f)" >> ./$CONF_FILE
|
||||||
exit 0
|
done
|
||||||
fi
|
|
||||||
echo "Enabled $PKGNAME virtual packages to $CONF_FILE."
|
|
||||||
echo "include(/etc/xbps/virtualpkg.d/$PKGNAME.conf)" >> ./$CONF_FILE
|
|
||||||
else
|
|
||||||
sed -i "/^include.*${PKGNAME}\.conf.*$/d" ./$CONF_FILE
|
|
||||||
echo "Disabled $PKGNAME virtual packages from $CONF_FILE."
|
|
||||||
fi
|
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
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.43
|
version=0.44
|
||||||
revision=1
|
revision=1
|
||||||
noarch=yes
|
noarch=yes
|
||||||
noextract=yes
|
noextract=yes
|
||||||
|
|
Loading…
Add table
Reference in a new issue