Skip to content

Commit

Permalink
--show-duplicates is NOT used by default in dnf 3 (RHEL 7)
Browse files Browse the repository at this point in the history
  • Loading branch information
jpopelka committed May 6, 2024
1 parent d7ceffc commit 519a508
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mtps-pkg-test
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ get_old_nevra() {
local arch="$(from_nevra "$nevra" "arch")"
# Find previous version of the package.
local old_nevras=($(
repoquery -q "$name"."$arch" --qf="%{name}-%{epoch}:%{version}-%{release}.%{arch}" | \
repoquery -q "$name"."$arch" --qf="%{name}-%{epoch}:%{version}-%{release}.%{arch}" --show-duplicates | \
tr -s ' ' | \
grep "$arch" | \
sed -n -e "/^${name}-${epoch}:${version}-${release}.${arch}$/"'!p'
Expand Down

0 comments on commit 519a508

Please sign in to comment.