Oliver Kurz schrieb:
On Tuesday 02 August 2016 13:19:14 Ludwig Nussel wrote:
Tumbleweed and Leap currently use /etc/os-release inconsistently:
[...] 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"
So mainly a question of having openSUSE in the name or not. Does anyone maintain a package that reads os-release that could give us a hint whether we should put openSUSE there or not? cu Ludwig -- (o_ Ludwig Nussel //\ V_/_ http://www.suse.com/ SUSE Linux GmbH, GF: Felix Imendörffer, Jane Smithard, Graham Norton, HRB 21284 (AG Nürnberg) -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org