mirror of
https://git.yoctoproject.org/poky
synced 2026-05-30 00:20:08 +00:00
lib/oe/rootfs: Use list_pkgs() instead of list()
This patch changes the use list_pkgs() instead of list() from class RpmPkgsList. The change is in two functions, image_list_installed_packages from rootfs.py and sdk_list_installed_packages from sdk.py. With this change the functions calling the functions listed above, must format the output as they required. The formatting can be done using format_pkg_list() from oe.utils. The classes calling the afected functions are changed too with this patch, to keep the same functionality using the new data structure. [YOCTO #7427] (From OE-Core rev: 983ea373362514e5888bd1d7d9c4f136c94b00f2) Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
03075f671c
commit
6ebda8e659
@@ -62,20 +62,24 @@ SDK_TARGET_MANIFEST = "${SDK_DEPLOY}/${TOOLCHAIN_OUTPUTNAME}.target.manifest"
|
||||
SDK_HOST_MANIFEST = "${SDK_DEPLOY}/${TOOLCHAIN_OUTPUTNAME}.host.manifest"
|
||||
python write_target_sdk_manifest () {
|
||||
from oe.sdk import sdk_list_installed_packages
|
||||
from oe.utils import format_pkg_list
|
||||
sdkmanifestdir = os.path.dirname(d.getVar("SDK_TARGET_MANIFEST", True))
|
||||
pkgs = sdk_list_installed_packages(d, True)
|
||||
if not os.path.exists(sdkmanifestdir):
|
||||
bb.utils.mkdirhier(sdkmanifestdir)
|
||||
with open(d.getVar('SDK_TARGET_MANIFEST', True), 'w') as output:
|
||||
output.write(sdk_list_installed_packages(d, True, 'ver'))
|
||||
output.write(format_pkg_list(pkgs, 'ver'))
|
||||
}
|
||||
|
||||
python write_host_sdk_manifest () {
|
||||
from oe.sdk import sdk_list_installed_packages
|
||||
from oe.utils import format_pkg_list
|
||||
sdkmanifestdir = os.path.dirname(d.getVar("SDK_HOST_MANIFEST", True))
|
||||
pkgs = sdk_list_installed_packages(d, False)
|
||||
if not os.path.exists(sdkmanifestdir):
|
||||
bb.utils.mkdirhier(sdkmanifestdir)
|
||||
with open(d.getVar('SDK_HOST_MANIFEST', True), 'w') as output:
|
||||
output.write(sdk_list_installed_packages(d, False, 'ver'))
|
||||
output.write(format_pkg_list(pkgs, 'ver'))
|
||||
}
|
||||
|
||||
POPULATE_SDK_POST_TARGET_COMMAND_append = " write_target_sdk_manifest ; "
|
||||
|
||||
Reference in New Issue
Block a user