From d9b3af9c26b5e488e674bd593e6391931e5dc044 Mon Sep 17 00:00:00 2001 From: Filip Valder Date: Mon, 31 Jan 2022 08:30:07 +0100 Subject: [PATCH] Add configuration for modular obsoletes Signed-off-by: Filip Valder --- .../backend/templates/pungi.module.conf.j2 | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/roles/bodhi2/backend/templates/pungi.module.conf.j2 b/roles/bodhi2/backend/templates/pungi.module.conf.j2 index 253d0c1370..8ed60437cf 100644 --- a/roles/bodhi2/backend/templates/pungi.module.conf.j2 +++ b/roles/bodhi2/backend/templates/pungi.module.conf.j2 @@ -56,6 +56,26 @@ module_defaults_dir = { 'dir': '.' } +module_obsoletes_dir = { + 'scm': 'git', + {% if env == "staging" %} + 'repo': 'https://pagure.io/modularity/fedora-stg-module-defaults.git', + [% if release.version_int == 8 %] + 'branch': 'el[[ release.version_int ]]', + [% else %] + 'branch': 'f[[ release.version_int ]]', + [% endif %] + {% else %} + 'repo': 'https://pagure.io/releng/fedora-module-defaults.git', + [% if release.version_int == 8 %] + 'branch': 'el[[ release.version_int ]]', + [% else %] + 'branch': 'f[[ release.version_int ]]', + [% endif %] + {% endif %} + 'dir': 'obsoletes' +} + hashed_directories = True # RUNROOT settings