xbps-triggers: gconf-schemas: ignore invalid schemas.
This commit is contained in:
parent
cde5b3d58c
commit
6c0ea75fdd
|
@ -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
|
||||
|
|
|
@ -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>"
|
||||
|
|
Loading…
Reference in New Issue