From 66ca1e4bcb2e2452a95465308aa77e491c5acf6e Mon Sep 17 00:00:00 2001 From: Pavel Raiskup Date: Sat, 2 Mar 2024 14:45:21 +0100 Subject: [PATCH] configs: Rawhide to accept GPG key from future Fedora Rawhide+1 Fixes: #1338 --- .../etc/mock/templates/fedora-rawhide.tpl | 2 +- releng/rawhide-branching.sh | 14 ++++++++++++++ .../fedora-rawhide-key-plus-one.config | 4 ++++ 3 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 releng/release-notes-next/fedora-rawhide-key-plus-one.config diff --git a/mock-core-configs/etc/mock/templates/fedora-rawhide.tpl b/mock-core-configs/etc/mock/templates/fedora-rawhide.tpl index dd4dfad34..2ebbca1de 100644 --- a/mock-core-configs/etc/mock/templates/fedora-rawhide.tpl +++ b/mock-core-configs/etc/mock/templates/fedora-rawhide.tpl @@ -39,7 +39,7 @@ user_agent={{ user_agent }} {%- macro rawhide_gpg_keys() -%} file:///usr/share/distribution-gpg-keys/fedora/RPM-GPG-KEY-fedora-$releasever-primary -{%- for version in [releasever|int, releasever|int - 1] +{%- for version in [releasever|int, releasever|int - 1, releasever|int + 1] %} file:///usr/share/distribution-gpg-keys/fedora/RPM-GPG-KEY-fedora-{{ version }}-primary {%- endfor %} {%- endmacro %} diff --git a/releng/rawhide-branching.sh b/releng/rawhide-branching.sh index f5283b5bf..a2e2c69a5 100755 --- a/releng/rawhide-branching.sh +++ b/releng/rawhide-branching.sh @@ -17,6 +17,20 @@ for config in fedora-??-x86_64.cfg; do next_version=$(( version + 1 )) done +rawhide_plus_one_version=$(( next_version + 1 )) +next_gpg=/usr/share/distribution-gpg-keys/fedora/RPM-GPG-KEY-fedora-$rawhide_plus_one_version-primary +test -e "$next_gpg" || { + cat >&2 <