1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2024-11-11 01:24:20 +00:00

tag/copr updatepkgs.txt generation: filter arches

If the repo has source packages in it, we get a badly-formed
updatepkgs.txt that breaks updvercheck. So let's filter to only
packages of the target arch and noarch.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
Adam Williamson 2024-06-26 15:16:22 -07:00
parent 146e41cca5
commit 5fda734892

View File

@ -580,7 +580,7 @@ sub setup_repos {
# avoids some more. grep . filters empty lines, which we get # avoids some more. grep . filters empty lines, which we get
# with dnf < 5 since this queryformat template ends with \n for # with dnf < 5 since this queryformat template ends with \n for
# dnf >= 5 # dnf >= 5
assert_script_run 'dnf -q --disablerepo=* --enablerepo=openqa-testtag repoquery --qf "%{SOURCERPM} %{NAME} %{EPOCH} %{VERSION} %{RELEASE}\n" | sort -u | grep -v testtag | grep . > /mnt/updatepkgs.txt'; assert_script_run 'dnf -q --disablerepo=* --enablerepo=openqa-testtag repoquery --qf "%{SOURCERPM} %{NAME} %{EPOCH} %{VERSION} %{RELEASE}\n" --arch=' . $arch . ',noarch | sort -u | grep -v testtag | grep . > /mnt/updatepkgs.txt';
# the | xargs here is a wacky trick that converts newlines to # the | xargs here is a wacky trick that converts newlines to
# spaces - unlike rpm, dnf < 5 always puts every package on a new # spaces - unlike rpm, dnf < 5 always puts every package on a new
# line, which we don't want here # line, which we don't want here