Marcus Rueckert wrote:
> On 2007-01-16 08:22:24 -0500, JP Rosevear wrote:
> > On Tue, 2007-01-16 at 12:53 +0100, Stanislav Brabec wrote:
> > > Hallo.
> > 
> > > Following scriptlets are needed:
> > > 
> > > %post
> > > if test -x usr/bin/update-mime-database ; then
> > >   usr/bin/update-mime-database usr/share/mime >/dev/null
> > > fi
> > > 
> > > %postun
> > > if test -x usr/bin/update-mime-database ; then
> > >   usr/bin/update-mime-database usr/share/mime >/dev/null
> > > fi

> imho you should add a prerequires on the package, which provides
> usr/bin/update-mime-database and only call the binary without the -x
> check.

shared-mime-info is not a prerequisite of these packages itself and it
is not good to introduce it only for MIME type definition. That's why we
use this (more complicated) scriptlet.

Current scriptlet has no prerequisite (except bash). When
shared-mime-info is installed, MIME database is created/updated and
packages which require shared-mime-info work correctly.

-- 
Best Regards / S pozdravem,

Stanislav Brabec
software developer
---------------------------------------------------------------------
SUSE LINUX, s. r. o.                          e-mail: [EMAIL PROTECTED]
Lihovarská 1060/12                            tel: +420 284 028 966
190 00 Praha 9                                fax: +420 284 028 951
Czech Republic                                http://www.suse.cz/

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to