/etc/SUSE-brand

Why does /etc/SUSE-branch say 42.1 on Leap 42.2?:

% head /etc/SUSE-brand /etc/SuSE-release /etc/os-release 
==> /etc/SUSE-brand <==
openSUSE
VERSION = 42.1

==> /etc/SuSE-release <==
openSUSE 42.2 (x86_64)
VERSION = 42.2
CODENAME = Malachite
# /etc/SuSE-release is deprecated and will be removed in the future, use /etc/os-release instead

==> /etc/os-release <==
NAME="openSUSE Leap"
VERSION="42.2"
ID=opensuse
ID_LIKE="suse"
VERSION_ID="42.2"
PRETTY_NAME="openSUSE Leap 42.2"
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:opensuse:leap:42.2"
BUG_REPORT_URL="https://bugs.opensuse.org"
HOME_URL="https://www.opensuse.org/"

Because 42.2 is based on 42.1, and that package apparently wasn’t updated I suppose.

Feel free to file a bug report at http://bugzilla.opensuse.org/.

Btw, I didn’t even know that that file existed… :wink:
You should use /etc/os-release (or lsb-release) to determine the version. That would also work on other distributions.