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:
https://github.com/rpm-software-management/rpm/issues/115#issuecomment-523816057
_______________________________________________
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
http://lists.rpm.org/mailman/listinfo/rpm-maint

Reply via email to