summaryrefslogtreecommitdiffstats
path: root/meta/lib/oe/rootfs.py
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@arm.com>2025-04-02 18:02:33 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2025-04-03 11:06:20 +0100
commitcb7e73b358328e967b10e1015a26de4b1f5a573c (patch)
treed5cfe802a44b24ebdc43a51dcf9ee7d55d83cbd7 /meta/lib/oe/rootfs.py
parent9a5705e95bbee0e103ba9395618bfeeba2c28d51 (diff)
downloadpoky-cb7e73b358328e967b10e1015a26de4b1f5a573c.tar.gz
lib/oe: remove redundant __name__ == "__main__" checks
There's no point in checking if __name__ == "__main__" (i.e., is this module being invoked) and then doing nothing. (From OE-Core rev: 020b6b1411c9fd3adb208808c0d56623190873f8) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oe/rootfs.py')
-rw-r--r--meta/lib/oe/rootfs.py9
1 files changed, 0 insertions, 9 deletions
diff --git a/meta/lib/oe/rootfs.py b/meta/lib/oe/rootfs.py
index 90d4974965..6b56adaf03 100644
--- a/meta/lib/oe/rootfs.py
+++ b/meta/lib/oe/rootfs.py
@@ -427,12 +427,3 @@ def image_list_installed_packages(d, rootfs_dir=None):
427 import importlib 427 import importlib
428 cls = importlib.import_module('oe.package_manager.' + img_type) 428 cls = importlib.import_module('oe.package_manager.' + img_type)
429 return cls.PMPkgsList(d, rootfs_dir).list_pkgs() 429 return cls.PMPkgsList(d, rootfs_dir).list_pkgs()
430
431if __name__ == "__main__":
432 """
433 We should be able to run this as a standalone script, from outside bitbake
434 environment.
435 """
436 """
437 TBD
438 """