[Rpm-maint] [rpm-software-management/rpm] Add a man page for rpm macro processor (PR #3781)
Michael Schroeder
notifications at github.com
Mon Jun 16 08:23:27 UTC 2025
@mlschroe 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.
This should IMHO be `VALUE`, not `EXPRESSION`. `EXPRESSION` is only used for expression expansion in the rest of the man page.
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/3781#pullrequestreview-2931086142
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/pull/3781/review/2931086142 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20250616/01921075/attachment.htm>
More information about the Rpm-maint
mailing list