From 133d659d12596038258119a10e742134a1c34b1d Mon Sep 17 00:00:00 2001 From: tigro Date: Sun, 20 Oct 2024 23:13:19 +0300 Subject: [PATCH] Use beta repos --- SPECS/sphere-release.spec | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/SPECS/sphere-release.spec b/SPECS/sphere-release.spec index 4c95f8e..1b7e258 100644 --- a/SPECS/sphere-release.spec +++ b/SPECS/sphere-release.spec @@ -510,6 +510,11 @@ install -p -m 0644 %{SOURCE507} %{buildroot}%{_sysconfdir}/yum.repos.d/ install -p -m 0644 %{SOURCE508} %{buildroot}%{_sysconfdir}/yum.repos.d/ install -p -m 0644 %{SOURCE509} %{buildroot}%{_sysconfdir}/yum.repos.d/ +# Use beta repos +%if %{defined beta} +sed -i "s@\$releasever@%{major}.%{minor}-beta@g" %{buildroot}%{_sysconfdir}/yum.repos.d/*.repo +%endif + # copy GPG keys install -d -m 0755 %{buildroot}%{_sysconfdir}/pki/rpm-gpg install -p -m 0644 %{SOURCE100} %{buildroot}%{_sysconfdir}/pki/rpm-gpg/