diff mbox series

lib/oe/lsb: Add missing os import

Message ID 20260904205310.2258067-1-richard.purdie@linuxfoundation.org
State Accepted, archived
Commit f2f1662e22961d0fca1f6af19d65f193a4f46d40
Headers show
Series lib/oe/lsb: Add missing os import | expand

Commit Message

Richard Purdie Sept. 4, 2026, 8:53 p.m. UTC
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 <richard.purdie@linuxfoundation.org>
---
 meta/lib/oe/lsb.py | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

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"""