On Fri, 2006-11-10 at 14:28 +0100, Tomasz Kłoczko wrote:
Dnia 09-11-2006, czw o godzinie 14:13 -0800, Toshio Kuratomi napisał(a):
On Thu, 2006-11-09 at 20:44 +0100, Tomasz Kłoczko wrote:
Corrected %postun example:
%postun export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` rm -f $GCONF_CONFIG_SOURCE/* gconftool-2 --makefile-install-rule /etc/gconf/schemas/*.schemas
& /dev/null
%postun is the wrong scriptlet to run this in. Once you get to %postun, the original schema file is no longer present.
And this is correct because on regenerate schema database we don't want have registered this schema.
Oops. I thought you had fixed this by using --makefile-uninstall-rule. My mistake. But you're going to have to try again to fix your scriptlet::
$ echo `gconftool-2 --get-default-source` xml:merged:/etc/gconf/gconf.xml.defaults
So your rm -f won't do what you think it will.
A few more iterations and we'll have reached the point where your scriptlet is as complex as the currently advocated method.
-Toshio