Java Mailing List Archive

http://www.redhatconfig.com/

Home » Mandriva Cooker »

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

Vincent Danen

2008-06-13

Replies: Find Java Web Hosting

Author LoginPost Reply
* [2008-06-13 23:22:41 -0300] Gustavo De Nardin (spuk) wrote:

>> >>>Oh, I see the problem. Thanks, will fix it ASAP.
>> >>
>> >>Regret to say it, but in *9mdv the same error remains.
>> >
>> >If it was an upgrade from the 8mdv, it is normal. The error comes from
>> >%postun of 8mdv, not from 9mdv.
>>
>> No, they both fail. I noticed this yesterday. What I don't get is why.
>> My 9mdv spec clearly has "|| : " in it, yet the output of rpm -q
>> --scripts doesn't show it.
>>
>> I haven't had time to look at it more, however. I don't know why the
>> new stuff I added isn't showing in the spec scriptlets.
>
>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.

I suppose I could expand it.. instead of using [[ -f ... ]] &&
%_preun... I could use an if/fi statement...

--
Vincent Danen @ http://linsec.ca/
©2008 redhatconfig.com - Jax Systems, LLC, U.S.A.