Author Login
Post 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/