diff options
| author | Ross Burton <ross.burton@arm.com> | 2025-04-02 18:02:33 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-04-03 11:06:20 +0100 |
| commit | cb7e73b358328e967b10e1015a26de4b1f5a573c (patch) | |
| tree | d5cfe802a44b24ebdc43a51dcf9ee7d55d83cbd7 /meta/lib | |
| parent | 9a5705e95bbee0e103ba9395618bfeeba2c28d51 (diff) | |
| download | poky-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')
| -rw-r--r-- | meta/lib/oe/manifest.py | 4 | ||||
| -rw-r--r-- | meta/lib/oe/rootfs.py | 9 | ||||
| -rw-r--r-- | meta/lib/oe/sdk.py | 3 |
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 | |||
| 205 | if __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 | |||
| 431 | if __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 | |||
| 159 | if __name__ == "__main__": | ||
| 160 | pass | ||
