]> git.pld-linux.org Git - packages/rpm.git/commitdiff
- check for /usr/bin/gconftool-2 existence in %gconf_schema_* macros, in case pkg...
authorElan Ruusamäe <glen@pld-linux.org>
Fri, 29 Aug 2008 15:58:30 +0000 (15:58 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    rpm.macros -> 1.475

rpm.macros

index 402f5883fba9c334efe54388d559a16b054dbac6..4f204a33ed43c70a75d0063a47b24b33514f39a0 100644 (file)
@@ -519,14 +519,18 @@ fi; }; __spec_install_post_chrpath } } }
 # Requires: GConf2
 #
 %gconf_schema_install() \
-       umask 022; \
-       GCONF_CONFIG_SOURCE="xml:readwrite:/etc/gconf/gconf.xml.defaults" /usr/bin/gconftool-2 --makefile-install-rule /etc/gconf/schemas/%{?1}%{!?1:*.schemas} > /dev/null; \
+       if [ -x /usr/bin/gconftool-2 ]; then \
+               umask 022; \
+               GCONF_CONFIG_SOURCE="xml:readwrite:/etc/gconf/gconf.xml.defaults" \\\
+               /usr/bin/gconftool-2 --makefile-install-rule /etc/gconf/schemas/%{?1}%{!?1:*.schemas} > /dev/null; \
+       fi; \
 %{nil}
 
 %gconf_schema_uninstall() \
-if [ $1 = 0 ]; then \
+if [ $1 = 0 -a -x /usr/bin/gconftool-2 ]; then \
        umask 022; \
-       GCONF_CONFIG_SOURCE="xml:readwrite:/etc/gconf/gconf.xml.defaults" /usr/bin/gconftool-2 --makefile-uninstall-rule /etc/gconf/schemas/%{?1} > /dev/null \
+       GCONF_CONFIG_SOURCE="xml:readwrite:/etc/gconf/gconf.xml.defaults" \\\
+       /usr/bin/gconftool-2 --makefile-uninstall-rule /etc/gconf/schemas/%{?1} > /dev/null \
 fi; \
 %{nil}
 
This page took 0.167279 seconds and 4 git commands to generate.