rawhide report: 20061109 changes

Toshio Kuratomi a.badger at gmail.com
Sat Nov 11 00:13:17 UTC 2006


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://listman.redhat.com/archives/fedora-devel-list/attachments/20061110/1b91e896/attachment.sig>


More information about the fedora-devel-list mailing list