[Fedora-packaging] New Draft Packaging Guideline - Fixing Gconf schema registration

Matthias Clasen mclasen at redhat.com
Wed Apr 22 14:02:23 UTC 2009


On Tue, 2009-04-21 at 23:50 -0700, Toshio Kuratomi wrote:

> 
> https://fedoraproject.org/wiki/PackagingDrafts/ScriptletSnippets/GConf#Compare_gconf_schemas
> 
> mclasen, would the new macros or something like them be acceptable to you?
> 

Sure, looks fine to me in general. 

Small nit: I think for the 'obsoleting schema1' case, you need to have
some "if [ -f "$schema" ]; " in there somewhere, since you don't know
which version was previously installed. 

That also brings up the point that it is hard to know when to drop this
obsoleting call, but that is nothing new and not that important, it
happens relatively rarely that schemas get dropped.

In %gconf_schema_upgrade, I think you want to remove to copy
in /var/lib/rpm-state/gconf regardless of the outcome of the comparison.

As far as owning the directory, I think it should be owned by whichever
package ends up installing the macros.





More information about the packaging mailing list