On 08/08/2013 05:44 PM, Claudio Freire wrote:
On Thu, Aug 8, 2013 at 12:39 PM, Togan Muftuoglu
wrote: > On Thu, 08 Aug 2013 10:51:43 +0200, Andreas Jaeger
said: Andreas> A couple of packages check for /etc/SuSE-release and I suggest to Andreas> deprecate it and use the new cross-distro location Andreas> /etc/SuSE-release instead.
Andreas> I've asked Coolo to addthe following line to the end of Andreas> /etc/SuSE-release now:
Andreas> # /etc/SuSE-release is deprecated and will be removed in the Andreas> future, use /etc/os-release instead
Andreas> I filed a few bugs against SUSE packages that check Andreas> /etc/SuSE-release to switch and suggest that you fix - and send Andreas> upstream - any checks for /etc/SuSE-release.
Yes but there is a tiny problem as I was told by shorewall upstream Debian 7 and Fedora 19 are also using /etc/os-release
So how do we distinguish that this is openSUSE
Ehm...
~> cat /etc/os-release NAME=openSUSE VERSION="12.2 (Mantis)" VERSION_ID="12.2" PRETTY_NAME="openSUSE 12.2 (Mantis) (x86_64)" ID=opensuse ANSI_COLOR="0;32" CPE_NAME="cpe:/o:opensuse:opensuse:12.2"
So...
~> grep -q openSUSE /etc/os-release && echo "It's openSUSE" || echo "It's not" It's openSUSE
Better: source /etc/os-release if [ $NAME = "openSUSE" ] ; then... fi 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