Skip to content

Macro %CHANGELOGTEXT - duplicated output #3529

Answered by pmatilai
onosek asked this question in Q&A
Discussion options

You must be logged in to vote

That query produces garbage because the query makes no sense. CHANGELOGTEXT tag (not macro) is an array, you need to query appropriately: --qf '[%{CHANGELOGTEXT}\n]'

rpm's own --changelog is literally implemented as:
--qf '[* %{CHANGELOGTIME:day} %{CHANGELOGNAME}\n%{CHANGELOGTEXT}\n\n]'

See https://rpm-software-management.github.io/rpm/manual/queryformat.html for the whole story.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by pmatilai
Comment options

You must be logged in to vote
1 reply
@onosek
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #3528 on January 21, 2025 07:12.