xbps-triggers: update to 0.4, improve gsettings-schemas trigger.

This commit is contained in:
Juan RP 2010-10-25 18:36:16 +02:00
parent e08990dd33
commit e77c14ecab
2 changed files with 5 additions and 5 deletions

View file

@ -1,6 +1,6 @@
# Template file for 'xbps-triggers' # Template file for 'xbps-triggers'
pkgname=xbps-triggers pkgname=xbps-triggers
version=0.3 version=0.4
build_style=custom-install build_style=custom-install
short_desc="XBPS Package System triggers" short_desc="XBPS Package System triggers"
maintainer="Juan RP <xtraeme@gmail.com>" maintainer="Juan RP <xtraeme@gmail.com>"

View file

@ -22,7 +22,7 @@ GLIB_SCHEMAS_DIR="usr/share/glib-2.0/schemas"
case "$ACTION" in case "$ACTION" in
targets) targets)
echo "post-install pre-remove" echo "post-install post-remove pre-remove"
;; ;;
run) run)
if [ ! -x "$GSCHEMASCOMP" ]; then if [ ! -x "$GSCHEMASCOMP" ]; then
@ -30,9 +30,9 @@ run)
fi fi
case "$TARGET" in case "$TARGET" in
post-install) post-*)
# Compile all GSettings schema files. # Compile all GSettings schema files.
echo -n "Recompiling GSettings XML schema files on " echo -n "Refreshing GSettings database from "
echo -n "${GLIB_SCHEMAS_DIR}... " echo -n "${GLIB_SCHEMAS_DIR}... "
${GSCHEMASCOMP} ${GLIB_SCHEMAS_DIR} ${GSCHEMASCOMP} ${GLIB_SCHEMAS_DIR}
if [ $? -eq 0 ]; then if [ $? -eq 0 ]; then
@ -44,7 +44,7 @@ run)
pre-remove) pre-remove)
if [ "${PKGNAME}" = "glib" ]; then if [ "${PKGNAME}" = "glib" ]; then
rm -f ${GLIB_SCHEMAS_DIR}/*.compiled rm -f ${GLIB_SCHEMAS_DIR}/*.compiled
echo "Removed compiled GSettings schema files." echo "Removed GSettings database file."
fi fi
;; ;;
esac esac