mirror of
git://git.yoctoproject.org/poky.git
synced 2025-07-19 21:09:03 +02:00
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>
This commit is contained in:
parent
9a5705e95b
commit
cb7e73b358
|
@ -200,7 +200,3 @@ def create_manifest(d, final_manifest=False, manifest_dir=None,
|
||||||
manifest.create_final()
|
manifest.create_final()
|
||||||
else:
|
else:
|
||||||
manifest.create_initial()
|
manifest.create_initial()
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
|
||||||
pass
|
|
||||||
|
|
|
@ -427,12 +427,3 @@ def image_list_installed_packages(d, rootfs_dir=None):
|
||||||
import importlib
|
import importlib
|
||||||
cls = importlib.import_module('oe.package_manager.' + img_type)
|
cls = importlib.import_module('oe.package_manager.' + img_type)
|
||||||
return cls.PMPkgsList(d, rootfs_dir).list_pkgs()
|
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
|
|
||||||
"""
|
|
||||||
|
|
|
@ -155,6 +155,3 @@ def get_extra_sdkinfo(sstate_dir):
|
||||||
extra_info['tasksizes'][task] = origtotal + fsize
|
extra_info['tasksizes'][task] = origtotal + fsize
|
||||||
extra_info['filesizes'][fn] = fsize
|
extra_info['filesizes'][fn] = fsize
|
||||||
return extra_info
|
return extra_info
|
||||||
|
|
||||||
if __name__ == "__main__":
|
|
||||||
pass
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user