From 67a5c016f647a39f2638c5956f7269338fe49fae Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Tue, 18 Apr 2023 12:15:38 -0700 Subject: [PATCH] bodhi: adjust arches for updates pushes Right now we are pushing a pointless armhfp variant in f37/f38 updates. (It only has noarch packages in it). So, lets clean up the logic here for both rpm updates pushes and modular pushes. We can drop atomic as we don't do that anymore. After we push this out and confirm it's working for a day or two, we should go in and remove the bogus armhfp dirs from the master mirrors. Signed-off-by: Kevin Fenzi --- .../backend/templates/variants.module.xml.j2 | 7 ++--- .../backend/templates/variants.rpm.xml.j2 | 26 +++++-------------- 2 files changed, 9 insertions(+), 24 deletions(-) diff --git a/roles/bodhi2/backend/templates/variants.module.xml.j2 b/roles/bodhi2/backend/templates/variants.module.xml.j2 index 8126ec589b..1388475822 100644 --- a/roles/bodhi2/backend/templates/variants.module.xml.j2 +++ b/roles/bodhi2/backend/templates/variants.module.xml.j2 @@ -7,11 +7,8 @@ ppc64le s390x x86_64 - [% if release.version_int > 8 %] - i386 - [% endif %] - [% if release.version_int < 37 %] - armhfp + [% if release.version_int < 37 %] + armhfp [% endif %] diff --git a/roles/bodhi2/backend/templates/variants.rpm.xml.j2 b/roles/bodhi2/backend/templates/variants.rpm.xml.j2 index 643e7592d8..37e6a5daa2 100644 --- a/roles/bodhi2/backend/templates/variants.rpm.xml.j2 +++ b/roles/bodhi2/backend/templates/variants.rpm.xml.j2 @@ -4,26 +4,14 @@ x86_64 - [% if release.version_int == 30 or release.version_int == 6 %] - i386 - [% endif %] - [% if release.id_prefix == "FEDORA" %] - armhfp - [% endif %] - [% if release.version_int >= 26 or release.version_int >= 8 %] - aarch64 - [% endif %] - [% if release.version_int >= 26 or release.version_int >= 7 %] - ppc64le - [% endif %] - s390x - - - - - aarch64 - x86_64 + s390x ppc64le + [% if release.version_int == 36 %] + armhfp + [% endif %] + [% if release.version_int != 7 %] + aarch64 + [% endif %]