From ee6d3ddc4f191942d054f517d73ec9cf19516196 Mon Sep 17 00:00:00 2001 From: Cappy Ishihara Date: Fri, 19 Jul 2024 13:15:20 +0700 Subject: [PATCH] fix: jinja2 templating --- anda/terra/mock-configs/terra.tpl | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/anda/terra/mock-configs/terra.tpl b/anda/terra/mock-configs/terra.tpl index 9bdec8ddb0..73490fa8ab 100644 --- a/anda/terra/mock-configs/terra.tpl +++ b/anda/terra/mock-configs/terra.tpl @@ -44,13 +44,25 @@ enabled_metadata=1 metadata_expire=4h # Only used for multilib builds, pulls straight from fedora koji -[local] +# Use /rawhide/latest instead of /f{{ releasever }}-build/latest for rawhide +[local-f{{ releasever }}-build] name=local baseurl=https://kojipkgs.fedoraproject.org/repos/f{{ releasever }}-build/latest/$basearch/ cost=2000 -enabled={{ not mirrored }} +# enabled only if not mirrored, and not rawhide +enabled={% if not mirrored and releasever != 'rawhide' %}1{% else %}0{% endif %} skip_if_unavailable=False +[local-rawhide-build] +name=local-rawhide +baseurl=https://kojipkgs.fedoraproject.org/repos/rawhide/latest/$basearch/ +cost=2000 +# enabled only if not mirrored, and rawhide +enabled={% if not mirrored and releasever == 'rawhide' %}1{% else %}0{% endif %} +skip_if_unavailable=False + + + {% if mirrored %} [fedora]