public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/fedora-repos] f45: Assert all rawhide/eln repos are set to enabled when this is rawhide
@ 2026-08-10 9:41
0 siblings, 0 replies; only message in thread
From: @ 2026-08-10 9:41 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/fedora-repos
Branch : f45
Commit : bf9a6311f0b87f3600b7ba0d6dc457f7700ac7a4
Author : Miro Hrončok <miro@hroncok.cz>
Date : 2020-10-13T22:48:00+02:00
Stats : +12/-0 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/fedora-repos/c/bf9a6311f0b87f3600b7ba0d6dc457f7700ac7a4?branch=f45
Log:
Assert all rawhide/eln repos are set to enabled when this is rawhide
Signed-off-by: Miro Hrončok <miro@hroncok.cz>
---
diff --git a/fedora-repos.spec b/fedora-repos.spec
index 9bc24f3..422ef49 100644
--- a/fedora-repos.spec
+++ b/fedora-repos.spec
@@ -187,6 +187,18 @@ install -d -m 755 $RPM_BUILD_ROOT/etc/ostree/remotes.d/
install -m 644 %{_sourcedir}/fedora.conf $RPM_BUILD_ROOT/etc/ostree/remotes.d/
install -m 644 %{_sourcedir}/fedora-compose.conf $RPM_BUILD_ROOT/etc/ostree/remotes.d/
+
+%check
+# assert all rawhide/eln repos are set to enabled only when this is rawhide
+for repo in $RPM_BUILD_ROOT/etc/yum.repos.d/fedora-{rawhide,eln}*.repo; do
+ %if %{rawhide_release} == %{version}
+ grep 'enabled=1' $repo
+ %else
+ grep 'enabled=1' $repo && exit 1
+ %endif
+done
+
+
%files
%dir /etc/yum.repos.d
%config(noreplace) /etc/yum.repos.d/fedora.repo
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-08-10 9:41 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-10 9:41 [rpms/fedora-repos] f45: Assert all rawhide/eln repos are set to enabled when this is rawhide
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox