On 08/08/2013 11:15 AM, Ruediger Meier wrote:
On Thursday 08 August 2013, Andreas Jaeger wrote:
A couple of packages check for /etc/SuSE-release and I suggest to deprecate it and use the new cross-distro location /etc/SuSE-release instead.
I've asked Coolo to addthe following line to the end of /etc/SuSE-release now:
# /etc/SuSE-release is deprecated and will be removed in the future, use /etc/os-release instead
I filed a few bugs against SUSE packages that check /etc/SuSE-release to switch and suggest that you fix - and send upstream - any checks for /etc/SuSE-release.
To "fix" this in a backward compatible way you could better use lsb_release -d -r -c
Indeed, an option as well - but lsb_release is not required to be installed on every system. Forward looking, /etc/os-release will be. But if - as today - you do: if /etc/SuSE-release ... elsif /etc/fedora-release You can change this to: if /etc/os-release.. elsif `lsb_release` ... Or something like that. Andreas -- Andreas Jaeger aj@{suse.com,opensuse.org} Twitter/Identica: jaegerandi SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany GF: Jeff Hawn,Jennifer Guild,Felix Imendörffer,HRB16746 (AG Nürnberg) GPG fingerprint = 93A3 365E CE47 B889 DF7F FED1 389A 563C C272 A126 -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org