Re: rawhide report: 20061109 changes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 09 Nov 2006 21:12:40 +0100, Tomasz Kłoczko wrote:

> Dnia 09-11-2006, czw o godzinie 20:44 +0100, Tomasz Kłoczko napisał(a):
> [..]
> > %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 
> 
> After run above from hand as next I'm run (just for exercise/check):
> 
> # gconftool-2 --makefile-uninstall-rule /etc/gconf/schemas/*.schemas
> >& /dev/null
> 
> It do not produces xml files with empty trees in $GCONF_CONFIG_SOURCE
> directory. Is it correct ? (IMO not)
> Probably --makefile-{,un}install-rule switches are not fully symmetric.

They are.

Still I'm confused as what you try to accomplish. If your %postun does not
evaluate $1 properly, your old package's %postun script is executed last
and reverts changes your new package needs.

The following page covers this,

  http://fedoraproject.org/wiki/Packaging/ScriptletSnippets

and also suggests a work-around for package upgrades where you want
to remove old schema files, which are obsolete.

-- 
fedora-devel-list mailing list
fedora-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-devel-list

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux