xbps-triggers: gconf-schemas: ignore invalid schemas.

This commit is contained in:
Juan RP 2012-12-09 17:33:03 +01:00
parent cde5b3d58c
commit 6c0ea75fdd
2 changed files with 13 additions and 1 deletions

View file

@ -50,6 +50,9 @@ run)
case "$TARGET" in
post-install)
for f in ${gconf_schemas}; do
if [ ! -f "${GCONF_SCHEMAS_DIR}/${f}" ]; then
continue
fi
GCONF_CONFIG_SOURCE="$GCONF_CONFIG_SOURCE" \
${GCONFTOOL2} --makefile-install-rule \
${GCONF_SCHEMAS_DIR}/${f} >/dev/null
@ -58,6 +61,9 @@ run)
fi
done
for f in ${gconf_entries}; do
if [ ! -f "${GCONF_SCHEMAS_DIR}/${f}" ]; then
continue
fi
${GCONFTOOL2} --config-source=${GCONF_CONFIG_SOURCE} \
--direct --load ${GCONF_SCHEMAS_DIR}/${f} \
>/dev/null
@ -68,6 +74,9 @@ run)
;;
pre-remove)
for f in ${gconf_entries}; do
if [ ! -f "${GCONF_SCHEMAS_DIR}/${f}" ]; then
continue
fi
${GCONFTOOL2} --config-source=${GCONF_CONFIG_SOURCE} \
--direct --unload ${GCONF_SCHEMAS_DIR}/${f} \
>/dev/null
@ -76,6 +85,9 @@ run)
fi
done
for f in ${gconf_schemas}; do
if [ ! -f "${GCONF_SCHEMAS_DIR}/${f}" ]; then
continue
fi
GCONF_CONFIG_SOURCE="${GCONF_CONFIG_SOURCE}" \
${GCONFTOOL2} --makefile-uninstall-rule \
${GCONF_SCHEMAS_DIR}/${f} >/dev/null

View file

@ -1,6 +1,6 @@
# Template file for 'xbps-triggers'
pkgname=xbps-triggers
version=0.55
version=0.56
revision=1
short_desc="XBPS triggers"
maintainer="Juan RP <xtraeme@gmail.com>"