public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/fedora-release] f45: Minor fixes to os-release processing
@ 2026-08-10  9:36 Stephen Gallagher
  0 siblings, 0 replies; only message in thread
From: Stephen Gallagher @ 2026-08-10  9:36 UTC (permalink / raw)
  To: git-commits

            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

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-08-10  9:36 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:36 [rpms/fedora-release] f45: Minor fixes to os-release processing Stephen Gallagher

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox