From 5ef91051e312f698d6a716d2749fa2830628ebb5 Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Sep 21 2022 22:52:04 +0000 Subject: spam-o-matic: set dnf `Base.conf.arch` to fix reports (#7931) Thanks to mhroncok for suggesting this. @kevin pointed out that reports were still completely wrong on some arches. It seems that dnf filtering by provides needs this `Base.conf.arch` config option set to the relevant arch to work properly. With this set, generating a report for a different arch from the 'native' arch of the system generating the report should work properly. Signed-off-by: Adam Williamson --- diff --git a/scripts/spam-o-matic b/scripts/spam-o-matic index 729970c..8af5bcf 100755 --- a/scripts/spam-o-matic +++ b/scripts/spam-o-matic @@ -59,6 +59,7 @@ def generateDnfBaseObject(distdir, treename, arch): dbo.conf.keepcache = False dbo.conf.metadata_expire = 0 dbo.conf.cachedir = tempfile.mkdtemp() + dbo.conf.arch = arch dnfrepo = dnf.repo.Repo("{}-{}".format(treename, arch), dbo.conf) dnfrepo.name = "Fedora {} Tree - {}".format(treename, arch)