Java Mailing List Archive

http://www.redhatconfig.com/

Home » Mandriva Cooker »

Re: [Cooker] Re: [RPM] cooker main/release tcb-1.0.2-8mdv2009.0

Thierry Vignaud

2008-06-16

Replies: Find Java Web Hosting

Author LoginPost Reply
Vincent Danen <vdanen@(protected):

> >The %_preun_service macro is expanded during build time, and passed "nscd || :"
> >as arguments:
> >
> >$ rpm --eval '%_preun_service nscd || : sdf3 sdf sdf sdf'
> >/usr/share/rpm-helper/del-service %{name} $1 nscd
>
> dOh! Ok, well that explains that. Any ideas on how to work around
> this? Throwing something like "true" on the next line seems... well...
> tacky. There has to be a better way.

What's wrong with an explicit true?
Anyway this will be ok:

rpm --eval '%{_preun_service nscd} :'
/usr/share/rpm-helper/del-service %{name} $1 nscd
:


> I suppose I could expand it.. instead of using [[ -f ... ]] &&
> %_preun... I could use an if/fi statement...
©2008 redhatconfig.com - Jax Systems, LLC, U.S.A.