[Rpm-maint] [rpm-software-management/rpm] `%{sub:...}` macro does not work with `%{expand:...}` (Issue #3412)

Vít Ondruch notifications at github.com
Wed Oct 30 14:13:00 UTC 2024


> rpm -D "name string-io" -D "string_io_prerelease .dev" --eval '%{sub %{expand:%%?%{gsub %{name} - _}_prerelease} 2 -1}'

Thx for the tip. I was getting to the point of trying multiple `%`. You have saved me some time 👍

There is also different variant it seems:

~~~
$ rpm -D "name string-io" -D "string_io_prerelease .dev" --eval '%{sub %{expand:%?%{gsub %{name} - _}_prerelease} 2 -1}'
dev
~~~

which kind of makes sense.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/3412#issuecomment-2447301885
You are receiving this because you are subscribed to this thread.

Message ID: <rpm-software-management/rpm/issues/3412/2447301885 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20241030/c65f5ab2/attachment.html>


More information about the Rpm-maint mailing list