Since $basearch won't work in the url we need to manually
substitute arch. Make a for loop and specify a unique url
for each arch.
---
 roles/bodhi2/backend/templates/pungi.rpm.conf.j2 | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/roles/bodhi2/backend/templates/pungi.rpm.conf.j2 
b/roles/bodhi2/backend/templates/pungi.rpm.conf.j2
index d3ab5981a..e318959d1 100644
--- a/roles/bodhi2/backend/templates/pungi.rpm.conf.j2
+++ b/roles/bodhi2/backend/templates/pungi.rpm.conf.j2
@@ -196,6 +196,7 @@ volume_id_substitutions = {
 image_build = {
     '^Everything$': [
         {
+        [% for arch in ['x86_64', 'aarch64', 'ppc64le'] %]
             'image-build': {
                 'format': [('qcow2', 'qcow2'), ('raw-xz', 'raw.xz')],
                 'name': 'Fedora-Atomic',
@@ -203,11 +204,12 @@ image_build = {
                 'distro': 'Fedora-22',
                 'disk_size': 6,
                 'target': 'f[[ release.version_int ]]',
-                'arches': ['x86_64', 'aarch64', 'ppc64le'],
-                'install_tree_from': "https://kojipkgs{{ env_suffix 
}}.fedoraproject.org/compose/branched/latest-Fedora-[[ release.version_int 
]]/compose/Everything/$basearch/os/"
+                'arches': ['[[arch]]'],
+                'install_tree_from': "https://kojipkgs{{ env_suffix 
}}.fedoraproject.org/compose/branched/latest-Fedora-[[ release.version_int 
]]/compose/Everything/[[arch]]/os/"
                 'subvariant': 'AtomicHost',
                 'failable': ['*'],
-            }
+            },
+        [% endfor %]
         }
     ]
 }
-- 
2.14.3
_______________________________________________
infrastructure mailing list -- infrastructure@lists.fedoraproject.org
To unsubscribe send an email to infrastructure-le...@lists.fedoraproject.org

Reply via email to