sm-discuss AT lists.ibiblio.org
Subject: Public SourceMage Discussion List
List archive
- From: Andrew Stitt <afrayedknot AT thefrayedknot.armory.com>
- To: sm-discuss <sm-discuss AT lists.ibiblio.org>
- Subject: Re: [SM-Discuss] About mime database...
- Date: Sun, 12 Nov 2006 14:08:57 -0800
If you're adding stuff to it during installation you probably should be
removing that stuff in POST_REMOVE. Regardless of any other infrastructure.
If having the file removed entirely prevents you from removing that
stuff then you can put it in the 'protected' filter, that will make
dispel ignore it. Alternatively if every time you update-mime-database
its a full database rebuild then protection isn't necessary.
You probably also want to have it in the volatiles filter (regardless
of protectedness), since cleanse will complain when the file is modified.
And in this case modification is ok.
-Andrew
On Sun, Nov 12, 2006 at 11:12:56PM +0100, Flavien Bridault wrote:
> Hello people,
>
> Once again I request your opinion... :-)
>
> I realized that several spells seem to launch 'update-mime-database'
> during INSTALL, because it is contained in the install target of the
> Makefile. Therefore, all these spells possess the mime database
> in /usr/share/mime/. So if one of these spells is removed, the database
> is broken and must be rebuild. An effect of this is that launching
> applications according to the file type in nautilus no longer works.
>
> So we have two solutions to fix this :
> - the easiest would be to rebuild the database in POST_REMOVE, this is
> quite fast,
> - patch/sedit Makefile to avoid the launch of update-mime-database and
> do it in FINAL
>
> Unless STAGE_ROOT magically solves the problem ?? I must admit I'm not
> really aware of the advantages... (yes I didn't take the time to read
> docs...)
>
> If you want to see it on your own, try :
> grep -l '/usr/share/mime' /var/log/sorcery/install/*
>
> Here is the result on my box :
> bluefish
> brasero
> bug
> comix
> dia
> emerald
> evolution2
> gdesklets
> gimp
> gnome
> jdk1.5
> nautilus2
> seahorse
> shared-mime-info
>
> --
> Flavien Bridault
>
> Disk, Graphics, Graphics-libs sections Guru
> Source Mage GNU/Linux - http://www.sourcemage.org
>
> irc: vlaaad
> jabber: vlaaad AT amessage.be
> _______________________________________________
> SM-Discuss mailing list
> SM-Discuss AT lists.ibiblio.org
> http://lists.ibiblio.org/mailman/listinfo/sm-discuss
-
[SM-Discuss] About mime database...,
Flavien Bridault, 11/12/2006
-
Re: [SM-Discuss] About mime database...,
Andrew Stitt, 11/12/2006
- Re: [SM-Discuss] About mime database..., Flavien Bridault, 11/13/2006
-
Re: [SM-Discuss] About mime database...,
Andrew Stitt, 11/12/2006
Archive powered by MHonArc 2.6.24.