xbps-triggers: gconf-schemas: ignore invalid schemas.
This commit is contained in:
parent
cde5b3d58c
commit
6c0ea75fdd
2 changed files with 13 additions and 1 deletions
|
@ -50,6 +50,9 @@ run)
|
||||||
case "$TARGET" in
|
case "$TARGET" in
|
||||||
post-install)
|
post-install)
|
||||||
for f in ${gconf_schemas}; do
|
for f in ${gconf_schemas}; do
|
||||||
|
if [ ! -f "${GCONF_SCHEMAS_DIR}/${f}" ]; then
|
||||||
|
continue
|
||||||
|
fi
|
||||||
GCONF_CONFIG_SOURCE="$GCONF_CONFIG_SOURCE" \
|
GCONF_CONFIG_SOURCE="$GCONF_CONFIG_SOURCE" \
|
||||||
${GCONFTOOL2} --makefile-install-rule \
|
${GCONFTOOL2} --makefile-install-rule \
|
||||||
${GCONF_SCHEMAS_DIR}/${f} >/dev/null
|
${GCONF_SCHEMAS_DIR}/${f} >/dev/null
|
||||||
|
@ -58,6 +61,9 @@ run)
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
for f in ${gconf_entries}; do
|
for f in ${gconf_entries}; do
|
||||||
|
if [ ! -f "${GCONF_SCHEMAS_DIR}/${f}" ]; then
|
||||||
|
continue
|
||||||
|
fi
|
||||||
${GCONFTOOL2} --config-source=${GCONF_CONFIG_SOURCE} \
|
${GCONFTOOL2} --config-source=${GCONF_CONFIG_SOURCE} \
|
||||||
--direct --load ${GCONF_SCHEMAS_DIR}/${f} \
|
--direct --load ${GCONF_SCHEMAS_DIR}/${f} \
|
||||||
>/dev/null
|
>/dev/null
|
||||||
|
@ -68,6 +74,9 @@ run)
|
||||||
;;
|
;;
|
||||||
pre-remove)
|
pre-remove)
|
||||||
for f in ${gconf_entries}; do
|
for f in ${gconf_entries}; do
|
||||||
|
if [ ! -f "${GCONF_SCHEMAS_DIR}/${f}" ]; then
|
||||||
|
continue
|
||||||
|
fi
|
||||||
${GCONFTOOL2} --config-source=${GCONF_CONFIG_SOURCE} \
|
${GCONFTOOL2} --config-source=${GCONF_CONFIG_SOURCE} \
|
||||||
--direct --unload ${GCONF_SCHEMAS_DIR}/${f} \
|
--direct --unload ${GCONF_SCHEMAS_DIR}/${f} \
|
||||||
>/dev/null
|
>/dev/null
|
||||||
|
@ -76,6 +85,9 @@ run)
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
for f in ${gconf_schemas}; do
|
for f in ${gconf_schemas}; do
|
||||||
|
if [ ! -f "${GCONF_SCHEMAS_DIR}/${f}" ]; then
|
||||||
|
continue
|
||||||
|
fi
|
||||||
GCONF_CONFIG_SOURCE="${GCONF_CONFIG_SOURCE}" \
|
GCONF_CONFIG_SOURCE="${GCONF_CONFIG_SOURCE}" \
|
||||||
${GCONFTOOL2} --makefile-uninstall-rule \
|
${GCONFTOOL2} --makefile-uninstall-rule \
|
||||||
${GCONF_SCHEMAS_DIR}/${f} >/dev/null
|
${GCONF_SCHEMAS_DIR}/${f} >/dev/null
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# Template file for 'xbps-triggers'
|
# Template file for 'xbps-triggers'
|
||||||
pkgname=xbps-triggers
|
pkgname=xbps-triggers
|
||||||
version=0.55
|
version=0.56
|
||||||
revision=1
|
revision=1
|
||||||
short_desc="XBPS triggers"
|
short_desc="XBPS triggers"
|
||||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||||
|
|
Loading…
Reference in a new issue