summaryrefslogtreecommitdiffstats
diff options
authorRoss Burton <ross.burton@arm.com>2025-04-02 18:02:33 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2025-04-03 11:05:48 +0100
commit020b6b1411c9fd3adb208808c0d56623190873f8 (patch)
tree32fd40fd116a2abaeb55c28ee19575d55ca35682
parentc65180bb677d8dae1992445cd378119d8cbed424 (diff)
downloadopenembedded-core-020b6b1411c9fd3adb208808c0d56623190873f8.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. Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/lib/oe/manifest.py4
-rw-r--r--meta/lib/oe/rootfs.py9
-rw-r--r--meta/lib/oe/sdk.py3
3 files changed, 0 insertions, 16 deletions
diff --git a/meta/lib/oe/manifest.py b/meta/lib/oe/manifest.py
index 61f18adc4a..cf7a13c247 100644
--- a/meta/lib/oe/manifest.py
+++ b/meta/lib/oe/manifest.py
@@ -200,7 +200,3 @@ def create_manifest(d, final_manifest=False, manifest_dir=None,
manifest.create_final()
else:
manifest.create_initial()
-
-
-if __name__ == "__main__":
- pass
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):
import importlib
cls = importlib.import_module('oe.package_manager.' + img_type)
return cls.PMPkgsList(d, rootfs_dir).list_pkgs()
-
-if __name__ == "__main__":
- """
- We should be able to run this as a standalone script, from outside bitbake
- environment.
- """
- """
- TBD
- """
diff --git a/meta/lib/oe/sdk.py b/meta/lib/oe/sdk.py
index 3dc3672210..11759aba48 100644
--- a/meta/lib/oe/sdk.py
+++ b/meta/lib/oe/sdk.py
@@ -155,6 +155,3 @@ def get_extra_sdkinfo(sstate_dir):
extra_info['tasksizes'][task] = origtotal + fsize
extra_info['filesizes'][fn] = fsize
return extra_info
-
-if __name__ == "__main__":
- pass