lib/oe/lsb: Add missing os import
PATCH 1/1 lib/oe/lsb: Add missing os import
File "/srv/pokybuild/yocto-worker/buildperf-alma8/build/layers/openembedded-core/meta/lib/oe/lsb.py", line 11, in get_os_release
if os.path.exists('/etc/os-release'):
^^NameError: name 'os' is not defined. Did you forget to import 'os'?
Signed-off-by Richard Purdie <[email protected]>
--- meta/lib/oe/lsb.py | 2 ++ 1 file changed, 2 insertions(+)
meta/lib/oe/lsb.py +2 -0
@@ -4,6 +4,8 @@ # SPDX-License-Identifier: GPL-2.0-only # +import os + def get_os_release(): """Get all key-value pairs from /etc/os-release as a dict"""