[Rpm-maint] [rpm-software-management/rpm] Implement %foreach builtin to iterate over arguments (PR #1828)

Michael Schroeder notifications at github.com
Thu Nov 11 16:20:31 UTC 2021


The %foreach macro expects a macro name and an iteration body.
It will split the expansion of the specified macro and then expand
the body for each element, setting %1 to the current element.

You can view, comment on, or merge this pull request online at:

  https://github.com/rpm-software-management/rpm/pull/1828

-- Commit Summary --

  * <a href="https://github.com/rpm-software-management/rpm/pull/1828/commits/322a0442bdf2f03bbff5a2541dd41dcc2c228541">Split out doExpandThisMacro() helper</a>
  * <a href="https://github.com/rpm-software-management/rpm/pull/1828/commits/d57129ebcbd161d5be300e184cd1c2da439e663c">Implement %foreach builtin to iterate over arguments</a>

-- File Changes --

    M rpmio/macro.c (77)
    M tests/rpmmacro.at (14)

-- Patch Links --

https://github.com/rpm-software-management/rpm/pull/1828.patch
https://github.com/rpm-software-management/rpm/pull/1828.diff

-- 
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/1828
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20211111/a9c33708/attachment-0001.html>


More information about the Rpm-maint mailing list