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