diff options
Diffstat (limited to 'meta/lib/oe/rootfs.py')
-rw-r--r-- | meta/lib/oe/rootfs.py | 19 |
1 files changed, 4 insertions, 15 deletions
diff --git a/meta/lib/oe/rootfs.py b/meta/lib/oe/rootfs.py index 30a1321db1..0e6c8bc2f0 100644 --- a/meta/lib/oe/rootfs.py +++ b/meta/lib/oe/rootfs.py | |||
@@ -709,28 +709,17 @@ def create_rootfs(d, manifest_dir=None): | |||
709 | os.environ.update(env_bkp) | 709 | os.environ.update(env_bkp) |
710 | 710 | ||
711 | 711 | ||
712 | def list_installed_packages(d, format=None, rootfs_dir=None): | 712 | def image_list_installed_packages(d, format=None, rootfs_dir=None): |
713 | if not rootfs_dir: | 713 | if not rootfs_dir: |
714 | rootfs_dir = d.getVar('IMAGE_ROOTFS', True) | 714 | rootfs_dir = d.getVar('IMAGE_ROOTFS', True) |
715 | 715 | ||
716 | img_type = d.getVar('IMAGE_PKGTYPE', True) | 716 | img_type = d.getVar('IMAGE_PKGTYPE', True) |
717 | if img_type == "rpm": | 717 | if img_type == "rpm": |
718 | return RpmPM(d, | 718 | return RpmPkgsList(d, rootfs_dir).list(format) |
719 | rootfs_dir, | ||
720 | d.getVar('TARGET_VENDOR', True) | ||
721 | ).list_installed(format) | ||
722 | elif img_type == "ipk": | 719 | elif img_type == "ipk": |
723 | return OpkgPM(d, | 720 | return OpkgPkgsList(d, rootfs_dir, d.getVar("IPKGCONF_TARGET", True)).list(format) |
724 | rootfs_dir, | ||
725 | d.getVar("IPKGCONF_TARGET", True), | ||
726 | d.getVar("ALL_MULTILIB_PACKAGE_ARCHS", True) | ||
727 | ).list_installed(format) | ||
728 | elif img_type == "deb": | 721 | elif img_type == "deb": |
729 | return DpkgPM(d, | 722 | return DpkgPkgsList(d, rootfs_dir).list(format) |
730 | rootfs_dir, | ||
731 | d.getVar('PACKAGE_ARCHS', True), | ||
732 | d.getVar('DPKG_ARCH', True) | ||
733 | ).list_installed(format) | ||
734 | 723 | ||
735 | if __name__ == "__main__": | 724 | if __name__ == "__main__": |
736 | """ | 725 | """ |