From 1f4dad1c48a126cec58223ad66f14317d4ec276a Mon Sep 17 00:00:00 2001 From: Stephen Gallagher Date: Dec 12 2018 18:42:18 +0000 Subject: 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 --- diff --git a/fedora-release.spec b/fedora-release.spec index cb8b25b..cc2c219 100644 --- a/fedora-release.spec +++ b/fedora-release.spec @@ -121,6 +121,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"