I'm updating 30+ spec files to use %include gconf-install.script
instead of inlining it and I'm changing gconf-install.script as
follows:

Index: include/gconf-install.script
===================================================================
--- include/gconf-install.script        (revision 12687)
+++ include/gconf-install.script        (working copy)
@@ -1,9 +1,9 @@
 ( echo 'test -x /usr/bin/gconftool-2 || {';
   echo '  echo "ERROR: gconftool-2 not found"';
-  echo '  exit 0';
+  echo '  exit 1';
   echo '}';
   echo 'umask 0022';
   echo 'GCONF_CONFIG_SOURCE=xml:merged:/etc/gconf/gconf.xml.defaults';
   echo 'export GCONF_CONFIG_SOURCE';
-  echo '/usr/bin/gconftool-2 --makefile-install-rule 
%{_sysconfdir}/gconf/schemas/*.schemas'
+  echo '/usr/bin/gconftool-2 --makefile-install-rule 
%{_sysconfdir}/gconf/schemas/*.schemas > /dev/null'
 ) | $BASEDIR/var/lib/postrun/postrun -u -c JDS_wait

Please use %include gconf-install.script in all spec files that need
to install schemas.  This ensures that future changes need to be
made in 1 file only and that the postrun scripts that install the
schemas will be exactly the same in all packages and therefore
it will only be executed once (postrun -u == unique).

Laca



Reply via email to