Skip to content

Commit

Permalink
cmdlib: use lowercase query tags for dnf repoquery --qf
Browse files Browse the repository at this point in the history
Uppercase query tags broke in dnf v4.15.0. There is an upstream PR[[1]]
to track restoring support for them, but since the canonical tag names
are lowercase, switch to that.

Fixes coreos/rpm-ostree#4368.

[1]: rpm-software-management/dnf#1922
  • Loading branch information
jlebon authored and cgwalters committed Apr 17, 2023
1 parent 18f56eb commit 7c819e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cmdlib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ EOF
# the same RPMs: the `dnf repoquery` below is to pick the latest one
dnf repoquery --repofrompath=tmp,"file://${overridesdir}/rpm" \
--disablerepo '*' --enablerepo tmp --refresh --latest-limit 1 \
--exclude '*.src' --qf '%{NAME}\t%{EVR}\t%{ARCH}' \
--exclude '*.src' --qf '%{name}\t%{evr}\t%{arch}' \
--quiet > "${tmp_overridesdir}/pkgs.txt"

# shellcheck disable=SC2002
Expand Down

0 comments on commit 7c819e4

Please sign in to comment.