[Rpm-ecosystem] Triple operator for conditional shortcut - choosing the best notation
Pavlina Moravcova Varekova
pmoravco at redhat.com
Sun Dec 30 10:57:48 UTC 2018
Hi,
I plan to implement "Triple operator for conditional shortcut".
(https://github.com/rpm-software-management/rpm/issues/115.)
There are several possibilities that can be used:
%{?{condition}:true:false} and %{!?{condition}:false:true}
or
%{?{condition}?true:false} and %{!?{condition}?false:true}
or
%{?:condition:true:false} and %{?!:condition:false:true}
>From the implementation point of view they are quite similar, so please does any of the notations look appropriate for you? Which of them do you prefer?
For more details see. https://github.com/rpm-software-management/rpm/issues/115.
Pavlina Moravcova Varekova
More information about the Rpm-ecosystem
mailing list