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(+)

diff --git a/meta/lib/oe/lsb.py b/meta/lib/oe/lsb.py
index 1dfc19be333..1283cefaafd 100644
--- a/meta/lib/oe/lsb.py
+++ b/meta/lib/oe/lsb.py
@@ -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"""
 
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#245129): 
https://lists.openembedded.org/g/openembedded-core/message/245129
Mute This Topic: https://lists.openembedded.org/mt/121093332/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to