Hi all,

We can now do multi-arch ostrees for updates! \o/
Can I get +1s to apply this patch to enable that for Fedora 27 and up?

Thanks,
Patrick


diff --git a/roles/bodhi2/backend/templates/pungi.rpm.conf.j2
b/roles/bodhi2/backend/templates/pungi.rpm.conf.j2
index 1c6dc02..b0f6ab7 100644
--- a/roles/bodhi2/backend/templates/pungi.rpm.conf.j2
+++ b/roles/bodhi2/backend/templates/pungi.rpm.conf.j2
@@ -107,9 +107,15 @@ createiso_skip = [
     ]

 [% if release.id_prefix == 'FEDORA' and release.version_int >= 26 %]
+{% if release.version_int >= 27 %}
+    {% set ostree_arches = ['x86_64', 'ppc64le', 'aarch64'] %}
+{% else %}
+    {% set ostree_arches = ['x86_64'] %}
+{% endif %}
 ostree = [
     ("^Everything$", {
-        "x86_64": {
+    {% for arch in ostree_arches %}
+        "{{ arch }}": {
             [% if release.version_int >= 28 %]
                 "version": "!OSTREE_VERSION_FROM_LABEL_DATE_TYPE_RESPIN",
             [% endif %]
@@ -120,17 +126,18 @@ ostree = [
                 "Everything",
                 [% if request.name == 'testing' %]
                     # In the case of testing, also inject the last
stable updates
-                    "https://kojipkgs{{ env_suffix
}}.fedoraproject.org/pub/fedora/linux/updates/[[ release.version
]]/x86_64/"
+                    "https://kojipkgs{{ env_suffix
}}.fedoraproject.org/pub/fedora/linux/updates/[[ release.version ]]/{{
arch }}/"
                 [% endif %]
                 [% if release.version_int == 27 %]
-                    "https://kojipkgs{{ env_suffix
}}.fedoraproject.org/pub/fedora/linux/development/[[
release.version_int ]]/Everything/x86_64/os/"
+                    "https://kojipkgs{{ env_suffix
}}.fedoraproject.org/pub/fedora/linux/development/[[
release.version_int ]]/Everything/{{ arch }}/os/"
                 [% else %]
-                    "https://kojipkgs{{ env_suffix
}}.fedoraproject.org/pub/fedora/linux/releases/[[ release.version_int
]]/Everything/x86_64/os/"
+                    "https://kojipkgs{{ env_suffix
}}.fedoraproject.org/pub/fedora/linux/releases/[[ release.version_int
]]/Everything/{{ arch }}/os/"
                 [% endif %]
             ]
             "ostree_repo": "/mnt/koji/compose/updates/atomic",
             "tag_ref": False
-        }
+        },
+    {% endfor %}
     })
 ]
 [% endif %]
_______________________________________________
infrastructure mailing list -- infrastructure@lists.fedoraproject.org
To unsubscribe send an email to infrastructure-le...@lists.fedoraproject.org

Reply via email to