aboutsummaryrefslogtreecommitdiffstats
path: root/macros.in
diff options
context:
space:
mode:
authorFrederic Crozat <fcrozat@mandriva.com>2007-06-06 16:36:30 +0000
committerFrederic Crozat <fcrozat@mandriva.com>2007-06-06 16:36:30 +0000
commitc501ca7947c767afed1398fb02681237faec7c09 (patch)
treece48fda4d366e5d0cae1f736d2c89b1e7d154242 /macros.in
parent7f2607fa9d90b3a3b310e161b50294ca69bbc89e (diff)
downloadrpm-setup-c501ca7947c767afed1398fb02681237faec7c09.tar
rpm-setup-c501ca7947c767afed1398fb02681237faec7c09.tar.gz
rpm-setup-c501ca7947c767afed1398fb02681237faec7c09.tar.bz2
rpm-setup-c501ca7947c767afed1398fb02681237faec7c09.tar.xz
rpm-setup-c501ca7947c767afed1398fb02681237faec7c09.zip
Use only one gconftool call for registering / unregistering multiple schemas, speed up things
Diffstat (limited to 'macros.in')
-rw-r--r--macros.in8
1 files changed, 6 insertions, 2 deletions
diff --git a/macros.in b/macros.in
index 2c5f9f2..32f2a37 100644
--- a/macros.in
+++ b/macros.in
@@ -214,16 +214,20 @@ then %{_update_mime_database_bin} %{_datadir}/mime > /dev/null || true ; fi \
# Install GConf schemas
%post_install_gconf_schemas() if [ -x %{_gconftool_bin} ]; then \
export GCONF_CONFIG_SOURCE=`%{_gconftool_bin} --get-default-source` && \
+SCHEMAS="" \
for SCHEMA in %{*} ; do \
- %{_gconftool_bin} --makefile-install-rule %{_sysconfdir}/gconf/schemas/$SCHEMA.schemas > /dev/null || true \
+ SCHEMAS="$SCHEMAS %{_sysconfdir}/gconf/schemas/$SCHEMA.schemas" \
done ; fi \
+%{_gconftool_bin} --makefile-install-rule $SCHEMAS > /dev/null || true \
%{nil}
%preun_uninstall_gconf_schemas() if [ "$1" = "0" -a -x %{_gconftool_bin} ]; then \
export GCONF_CONFIG_SOURCE=`%{_gconftool_bin} --get-default-source` && \
+SCHEMAS="" \
for SCHEMA in %{*} ; do \
- %{_gconftool_bin} --makefile-uninstall-rule %{_sysconfdir}/gconf/schemas/$SCHEMA.schemas > /dev/null || true \
+ SCHEMAS="$SCHEMAS %{_sysconfdir}/gconf/schemas/$SCHEMA.schemas" \
done ; fi \
+%{_gconftool_bin} --makefile-uninstall-rule $SCHEMAS > /dev/null || true \
%{nil}
# Rebuild scrollkeeper database