mirror of
https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git
synced 2024-12-21 18:03:11 +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:
parent
146e41cca5
commit
5fda734892
@ -580,7 +580,7 @@ sub setup_repos {
|
||||
# avoids some more. grep . filters empty lines, which we get
|
||||
# with dnf < 5 since this queryformat template ends with \n for
|
||||
# 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
|
||||
# spaces - unlike rpm, dnf < 5 always puts every package on a new
|
||||
# line, which we don't want here
|
||||
|
Loading…
Reference in New Issue
Block a user