-
Hi,
produces duplicated output. It occurs in Fedora 41 - rpm-4.20.0-1.fc41.x86_64 Tested on specfile like Originally, this issue was opened for fedpkg: Is it a planned change of behaviour or might it be a bug? Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
That query produces garbage because the query makes no sense. CHANGELOGTEXT tag (not macro) is an array, you need to query appropriately: rpm's own --changelog is literally implemented as: See https://rpm-software-management.github.io/rpm/manual/queryformat.html for the whole story. |
Beta Was this translation helpful? Give feedback.
-
The goal is to get the latest changelog message. |
Beta Was this translation helpful? Give feedback.
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.