On Tue, 2007-01-16 at 16:19 +0100, 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
> > 
> > Seems like a good candidate for another macro.
> 
> 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.

I think this means if the binary is ever removed and the package is no
longer needed,  the post install script will fail.  We saw similar
issues moving from gstreamer 0.8 to 0.10.

-JP
-- 
JP Rosevear <[EMAIL PROTECTED]>
Novell, Inc.

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

Reply via email to