[Rpm-maint] [rpm-software-management/rpm] RFE: Support rpm version comparison in expressions (#1233)

Panu Matilainen notifications at github.com
Tue May 19 13:55:48 UTC 2020


@pmatilai commented on this pull request.



>  
 You can use the standard operators to combine terms: logical
 operators &&, ||, !, relational operators !=, ==, <, > , <=, >=,
 arithmetic operators +, -, /, *, the ternary operator ? :, and
 parentheses.  For example, "%[ 3 + 4 * (1 + %two) ]" will expand
-to "15" if "%two" expands to "2".
+to "15" if "%two" expands to "2". Version terms are compared using
+rpm version comparison algorith, rather than regular string comparison.

Well, to me rpm version comparison algorithm *is* EVR comparison, but okay clarified + typo fixed.

-- 
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/pull/1233#discussion_r427320978
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20200519/1af56e9c/attachment.html>


More information about the Rpm-maint mailing list