On Tuesday 02 August 2016 13:19:14 Ludwig Nussel wrote:
Hi,
Tumbleweed and Leap currently use /etc/os-release inconsistently:
TW:
NAME=openSUSE VERSION="Tumbleweed" VERSION_ID="20160724" PRETTY_NAME="openSUSE Tumbleweed (20160724) (x86_64)"
Leap:
NAME="openSUSE Leap" VERSION="42.1" VERSION_ID="42.1" PRETTY_NAME="openSUSE Leap 42.1 (x86_64)"
There are of course multiple ways to change that. Here's my proposal:
ID="opensuse" NAME="Tumbleweed" VERSION="20160724" VERSION_ID="20160724" PRETTY_NAME="openSUSE Tumbleweed"
and
ID="opensuse" NAME="Leap" VERSION="42.1" VERSION_ID="42.1" PRETTY_NAME="openSUSE Leap 42.1"
According to the specification¹ VERSION and VERSION_ID may even be omitted for rolling distros but IMO it's still useful to find out how old a TW installation is.
Any objections?
From the spec I understand that ID and NAME should describe the same but ID in lowercase and more "machine readable", and NAME being more descriptive.
My proposal therefore: ID="opensuse" NAME="openSUSE Tumbleweed" VERSION="20160724" VERSION_ID="20160724" PRETTY_NAME="openSUSE Tumbleweed (20160724)" and ID="opensuse" NAME="openSUSE Leap" VERSION="42.1" VERSION_ID="42.1" PRETTY_NAME="openSUSE Leap 42.1" -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org