]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
lib/oe/lsb: attempt to ensure consistent distro id regardless of source joshuagl/liboe
authorJoshua Lock <joshua.g.lock@intel.com>
Mon, 7 Nov 2016 13:36:28 +0000 (13:36 +0000)
committerJoshua Lock <joshua.g.lock@intel.com>
Tue, 8 Nov 2016 14:37:46 +0000 (14:37 +0000)
commitdbce9d3db8013c56d7c814fc9757c62beb2df04d
tree5bef611defdaa72ff23c090ac7694244effb15d7
parent8033a65e8747c2db3e4d467e462e190174db1104
lib/oe/lsb: attempt to ensure consistent distro id regardless of source

The LSB Distributor ID and os-release NAME differ for most of the
distributions tested by the Yocto Project (CentOS, Debian, Fedora,
openSUSE and Ubuntu) however for all but openSUSE the os-release ID
matches the LSB Distributor ID when both are lowered before
comparison.

Therefore, in order to improve the consistency of identification of
a distribution, switch to using the os-release ID and converting
the ID value to lowercase.

Table showing comparison of LSB Distributor ID to os-release fields NAME
and ID for current Yocto Project supported host distributions:

Distribution | Version | Distributor ID   | NAME             | ID       |
-------------------------------------------------------------------------
CentOS       | 7       | CentOS           | CentOS Linux     | centos   |
Debian       | 8       | Debian           | Debian GNU/Linux | debian   |
Fedora       | 23      | Fedora           | Fedora           | fedora   |
Fedora       | 24      | Fedora           | Fedora           | fedora   |
openSUSE     | 13.2    | openSUSE project | openSUSE         | opensuse |
openSUSE     | 42.1    | SUSE LINUX       | openSUSE Leap    | opensuse |
Ubuntu       | 14.04   | Ubuntu           | Ubuntu           | ubuntu   |
Ubuntu       | 16.04   | Ubuntu           | Ubuntu           | ubuntu   |

[YOCTO #10591]

Signed-off-by: Joshua Lock <joshua.g.lock@intel.com>
meta/lib/oe/lsb.py