xbps-trigger: create compat symlink at pre-install time.
This commit is contained in:
parent
b41f0cfa0d
commit
5f85a1b7d2
2 changed files with 3 additions and 2 deletions
|
@ -1,11 +1,12 @@
|
|||
case "${ACTION}" in
|
||||
post)
|
||||
pre)
|
||||
# Remove old triggers and create compat symlink.
|
||||
if [ ! -d var/db/xbps ]; then
|
||||
mkdir -p var/db/xbps
|
||||
else
|
||||
rm -rf var/db/xbps/triggers
|
||||
fi
|
||||
[ ! -d usr/libexec/${PKGNAME} ] && mkdir -p usr/libexec/${PKGNAME}
|
||||
cd var/db/xbps && ln -sf ../../../usr/libexec/${PKGNAME} triggers
|
||||
;;
|
||||
esac
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# Template file for 'xbps-triggers'
|
||||
pkgname=xbps-triggers
|
||||
version=0.50
|
||||
version=0.51
|
||||
revision=1
|
||||
short_desc="XBPS triggers"
|
||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||
|
|
Loading…
Reference in a new issue