[Rpm-maint] [rpm-software-management/rpm] doPatch: send patch name to %__patch (#1350)
Michal Domonkos
notifications at github.com
Thu Aug 27 17:33:34 UTC 2020
@dmnks commented on this pull request.
> } else {
- patchcmd = rpmExpand("%{__patch} ", args, " < ", fn, NULL);
+ patchcmd = rpmExpand("RPM_PATCH_NAME=", sp->path, " %{__patch} ", args, " < ", fn, NULL);
`sp->path` is the same as `fn`, and it's what's passed to `stdin` of the `%__patch` binary, which means you can easily get that value by running `readlink -f /dev/stdin` in your binary. Handy, isn't it? :)
--
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/1350#pullrequestreview-476938605
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20200827/c47d9577/attachment.html>
More information about the Rpm-maint
mailing list