1
0
mirror of https://github.com/coreos/fedora-coreos-config.git synced 2026-02-05 09:45:30 +01:00

ci/remove-graduated-overrides: query by arch too

The x86_64 repo also includes i686 packages so we need to filter on the
arch too when querying to make sure we're comparing packages of the same
arch.
This commit is contained in:
Jonathan Lebon
2021-07-22 09:26:03 -04:00
parent f1a30dc38b
commit a75418838e

View File

@@ -109,7 +109,8 @@ def update_lockfile(base, fn):
def sack_has_nevra_greater_or_equal(base, nevra):
nevra = hawkey.split_nevra(nevra)
pkgs = base.sack.query().filterm(name=nevra.name).latest().run()
pkgs = base.sack.query().filterm(name=nevra.name,
arch=nevra.arch).latest().run()
if len(pkgs) == 0:
# Odd... the only way I can imagine this happen is if we fast-track a