public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Stephen Gallagher <sgallagh@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/fedora-release] f45: Minor fixes to os-release processing
Date: Mon, 10 Aug 2026 09:36:39 GMT [thread overview]
Message-ID: <178635459938.1.9237267998683534581.rpms-fedora-release-de8e57f14a21@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/fedora-release
Branch : f45
Commit : de8e57f14a210bf42a27c205dcd18abb8ac0fd7e
Author : Stephen Gallagher <sgallagh@redhat.com>
Date : 2024-10-18T11:52:43-04:00
Stats : +2/-1 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/fedora-release/c/de8e57f14a210bf42a27c205dcd18abb8ac0fd7e?branch=f45
Log:
Minor fixes to os-release processing
Don't amend to the file if it's already present. When building locally
with `fedpkg local`, this results in the os-release file getting
progressively longer with each pass. Instead, truncate it and start
over.
Additionally, add os-release to .gitignore so it doesn't mark the
directory unclean.
Signed-off-by: Stephen Gallagher <sgallagh@redhat.com>
---
diff --git a/.gitignore b/.gitignore
index b9c6347..e812bc3 100644
--- a/.gitignore
+++ b/.gitignore
@@ -5,3 +5,4 @@ fedora-release-*/*
*.src.rpm
noarch/*
licenses/*
+os-release
diff --git a/fedora-release.spec b/fedora-release.spec
index adb7ecc..d599901 100644
--- a/fedora-release.spec
+++ b/fedora-release.spec
@@ -1375,7 +1375,7 @@ ln -s fedora-release %{buildroot}%{_sysconfdir}/system-release
%global dist_debuginfod_url https://debuginfod.fedoraproject.org/
# -------------------------------------------------------------------------
-cat << EOF >> os-release
+cat << EOF >os-release
NAME="%{dist_name}"
VERSION="%{dist_version} (%{release_name}%{?prerelease})"
ID=fedora
reply other threads:[~2026-08-10 9:36 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=178635459938.1.9237267998683534581.rpms-fedora-release-de8e57f14a21@fedoraproject.org \
--to=sgallagh@redhat.com \
--cc=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