On Sun, Jun 21, 2009 at 08:09:05PM +0200, Antoine Jacoutot wrote:
> > > update-mime-database regenerates files from the packages directory
> > > as needed, and it also removes generated files if their source
> > > doesn't exist any longer.
> > > 
> > > Keep only a minimum of files and directories for proper cleanup on
> > > pkg_delete(8) and let update-mime-database do the remaining work.
> > 
> > This one should do a better job:
> 
> I don't understand how this will help in the long run when other 
> packages will run update-mime-database. Could you provide a bit more 
> info please.

Everything under share/mime is regenerated from the files in
share/mime/packages by update-mime-database. There's no point in
including this generated files into PLISTs, as they are regenerated
anyway, and as they may change when more files are added to
share/mime/packages.

The idea is to not only change shared-mime-info but also all ports
adding files to share/mime/packages and @exec'ing update-mime-database.

I'll send an example diff for a port (or two) in an hour.

Ciao,
        Kili

Reply via email to