[Rpm-maint] [rpm-software-management/rpm] `%{sub:...}` macro does not work with `%{expand:...}` (Issue #3412)
Vít Ondruch
notifications at github.com
Tue Oct 29 18:56:17 UTC 2024
The subject is likely wrong, because I don't understand the mechanism. But for some reason, it does not seem that the value provided by `%{expand:...}` is properly used by `%{sub:...}`
**Expected behavior**
~~~
$ rpm -D "name string-io" -D "string_io_prerelease .dev" --eval '%{sub %{expand:%{%{quote:?}%{gsub %{name} - _}_prerelease}} 2 -1}'
dev
~~~
**Output**
~~~
$ rpm -D "name string-io" -D "string_io_prerelease .dev" --eval '%{sub %{expand:%{%{quote:?}%{gsub %{name} - _}_prerelease}} 2 -1}'
{?string_io_prerelease}
~~~
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/3412
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/issues/3412 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20241029/862cd105/attachment.html>
More information about the Rpm-maint
mailing list