On 08/08/2013 11:39 AM, Togan Muftuoglu wrote:
On Thu, 08 Aug 2013 10:51:43 +0200, Andreas Jaeger <aj@suse.com> 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
check the content of the file, not just existence of /etc/SuSE-release -> cat /etc/os-release NAME=openSUSE VERSION="12.3 (Dartmouth)" VERSION_ID="12.3" PRETTY_NAME="openSUSE 12.3 (Dartmouth) (x86_64)" ID=opensuse ANSI_COLOR="0;32" CPE_NAME="cpe:/o:opensuse:opensuse:12.3" That'll look different on Debian and Fedora ;) Later, Robert -- Robert Schweikert MAY THE SOURCE BE WITH YOU SUSE-IBM Software Integration Center LINUX Tech Lead rjschwei@suse.com rschweik@ca.ibm.com 781-464-8147 -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org