[Rpm-maint] [rpm-software-management/rpm] Add a man page for rpm macro processor (PR #3781)
Panu Matilainen
notifications at github.com
Mon Jun 16 08:25:26 UTC 2025
@pmatilai commented on this pull request.
> +
+```
+%[ v"3.1.0-1" < v"1.0~alpha-2" ? 1 : 0]
+```
+
+Expands to *1* if *%aa* expands to *5*, otherwise expands to *2*:
+
+```
+%[ "%{aa}" == "5" ? 1 : 2]
+```
+
+# DEBUGGING
+Some useful tools for working with and troubleshooting macros:
+
+*rpm --eval "*_EXPRESSION_*"*
+ Expand macro _EXPRESSION_ on the command line.
Unlucky timing, but I agree, EXPRESSION is wrong here.
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/3781#discussion_r2149339839
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/pull/3781/review/2931091913 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20250616/5b070a9f/attachment.htm>
More information about the Rpm-maint
mailing list