[Rpm-maint] [rpm-software-management/rpm] Triple operator for conditional shortcut (#115)

Panu Matilainen notifications at github.com
Thu Aug 22 08:59:53 UTC 2019

To elaborate a bit further... so what rpm really needs, much more than the triple-operator for existence, is a macro syntax that supports the generic form:
<expression> ? <true case> [: <false case> ] 

<expression> is an arbitrary expression evaluated by rpmExprBool() (ie the same as spec %if), <true case> is output when expression is true, *optionally* followed by a false case. The macro existence test (triple syntax or not) could be seen as a specific sub-case of this all.

You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20190822/64d4a92f/attachment.html>

More information about the Rpm-maint mailing list