diff options
author | Joshua Lock <joshua.g.lock@intel.com> | 2016-11-15 22:08:54 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-11-23 11:02:30 +0000 |
commit | e36066dcc3b56cac1c695370ea178b566c0ebfd6 (patch) | |
tree | 026fe32f080e793d632d3fbbf85a3944bfac6a8e /meta/lib/oeqa/runtime/systemd.py | |
parent | 81479b191287ccbf4cf94fa2d0ad46813091bca1 (diff) | |
download | openembedded-core-e36066dcc3b56cac1c695370ea178b566c0ebfd6.tar.gz openembedded-core-e36066dcc3b56cac1c695370ea178b566c0ebfd6.tar.bz2 openembedded-core-e36066dcc3b56cac1c695370ea178b566c0ebfd6.zip |
lib/oe/lsb: better handle missing fields
Some rolling release distros, such as Arch Linux, don't include a
VERSION_ID field in their os-release file.
Change release_dict_osr() to better handle this optional field
being absent.
Further improve the resilience of the release_dict_*() methods by
always returning a dict and using dict.get() in distro_identifier()
to supply a default, empty string, value when then key is missing.
Signed-off-by: Joshua Lock <joshua.g.lock@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'meta/lib/oeqa/runtime/systemd.py')
0 files changed, 0 insertions, 0 deletions