summaryrefslogtreecommitdiffstats
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-02 21:28:12 +0100
commitcbb2502ec5dfc9f5be1d37e3640777a625d737e7 (patch)
tree9f900e972bc42035a84d4bf45da536eb650fa577
parenta062bf017cfe5b648b8fb0f6de35f450894c7926 (diff)
downloadpoky-cbb2502ec5dfc9f5be1d37e3640777a625d737e7.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: 1f408915cc712a2cae8bccd26e93512d73f970fc) 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,
200 manifest.create_final() 200 manifest.create_final()
201 else: 201 else:
202 manifest.create_initial() 202 manifest.create_initial()
203
204
205if __name__ == "__main__":
206 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):
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 """
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):
155 extra_info['tasksizes'][task] = origtotal + fsize 155 extra_info['tasksizes'][task] = origtotal + fsize
156 extra_info['filesizes'][fn] = fsize 156 extra_info['filesizes'][fn] = fsize
157 return extra_info 157 return extra_info
158
159if __name__ == "__main__":
160 pass