Mailinglist Archive: opensuse-packaging (60 mails)

< Previous Next >
Re: [opensuse-packaging] GNOME /usr packaging rules and FAQ
  • From: Marcus Rueckert <mrueckert@xxxxxxx>
  • Date: Tue, 16 Jan 2007 16:19:39 +0100
  • Message-id: <20070116151939.GJ23036@xxxxxxx>
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: opensuse-packaging+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-packaging+help@xxxxxxxxxxxx

< Previous Next >