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

            A new commit has been pushed.

            Repo   : rpms/fedora-release
            Branch : f45
            Commit : a5c97f9992cf32acd4ca733537c1f99927fc053b
            Author : Stephen Gallagher <sgallagh@redhat.com>
            Date   : 2018-12-12T13:39:32-05:00
            Stats  : +1/-0 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/fedora-release/c/a5c97f9992cf32acd4ca733537c1f99927fc053b?branch=f45

            Log:
            Include empty VERSION_CODENAME= field in os-release

/etc/os-release now supports a VERSION_CODENAME field that should
contain the codename of a release if any exists. Fedora does not
use a codename, so it should be set to the empty string.

This is because some tools (such as https://github.com/nir0s/distro
for Python) attempt to interpret first the VERSION_CODENAME and
then subsequently fall back to parsing the VERSION field for a
codename within parentheses. This means that the tools will return
a different value of codename depending on which Edition was
originall installed. Instead, we should ensure that it returns no
codename at all.

Signed-off-by: Stephen Gallagher <sgallagh@redhat.com>

---
diff --git a/fedora-release.spec b/fedora-release.spec
index d991c96..10564f7 100644
--- a/fedora-release.spec
+++ b/fedora-release.spec
@@ -317,6 +317,7 @@ NAME=Fedora
 VERSION="%{dist_version} (%{release_name})"
 ID=fedora
 VERSION_ID=%{dist_version}
+VERSION_CODENAME=""
 PLATFORM_ID="platform:f%{dist_version}"
 PRETTY_NAME="Fedora %{dist_version} (%{release_name})"
 ANSI_COLOR="0;34"

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

only message in thread, other threads:[~2026-08-10  9:34 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:34 [rpms/fedora-release] f45: Include empty VERSION_CODENAME= field in os-release Stephen Gallagher

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