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.

    darix

-- 
          openSUSE - SUSE Linux is my linux
              openSUSE is good for you
                  www.opensuse.org
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to