public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
To: git-commits@fedoraproject.org
Subject: [rpms/fedora-repos] f45: Assert all rawhide/eln repos are set to enabled when this is rawhide
Date: Mon, 10 Aug 2026 09:41:08 GMT [thread overview]
Message-ID: <178635486817.1.129622748292862584.rpms-fedora-repos-bf9a6311f0b8@fedoraproject.org> (raw)
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
reply other threads:[~2026-08-10 9:41 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=178635486817.1.129622748292862584.rpms-fedora-repos-bf9a6311f0b8@fedoraproject.org \
--to=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox