rpm-software-management / dnf5

Next-generation RPM package management system
Other
257 stars 87 forks source link

repoquery --qf newline behavior changed #709

Open juhp opened 1 year ago

juhp commented 1 year ago
$ sudo dnf-3 rq -q --qf "%{name}" bash coreutils
bash
coreutils
$ rpm -q dnf5
dnf5-5.0.15-2.fc39.x86_64
$ sudo dnf rq -q --qf "%{name}" bash coreutils
bashcoreutils

Yes it may seem a smaller thing, but this change of behavior breaks scripts etc... (even if consistent with rpmquery).

juhp commented 1 year ago

Just want to add that this makes it rather hard to support dnf repoquery across dnf-4 and dnf5 since they behave differently.

kontura commented 1 year ago

I was thinking that the new behavior is not only consistent with rpm --queryformat but it is also more powerful. Before users had to have the new line even if unwanted now they can choose. The option is more flexible.

Since we are switching to dnf5 which includes other changes I thought it was a good time for such an improvement.

However it is indeed a breaking change.