aboutsummaryrefslogtreecommitdiffstats
path: root/meta/lib/oe/rootfs.py
diff options
context:
space:
mode:
authorLaurentiu Palcu <laurentiu.palcu@intel.com>2014-03-18 11:09:56 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-03-21 12:05:30 +0000
commit8fc18e67504db5b6df3fdd239c6187a71af52656 (patch)
treeea8d73bb8394e930f04b842186861f79630d5e19 /meta/lib/oe/rootfs.py
parenta7290ed13378826723d1edc7e828eab848eaad10 (diff)
downloadopenembedded-core-8fc18e67504db5b6df3fdd239c6187a71af52656.tar.gz
rootfs.py, sdk.py: adjust/create the wrappers for creating installed packages list
Since we created a new PkgsList object that will deal with listing the installed packages in a rootfs, use the new class both for images and SDKs in the wrapper functions. The old list_installed_packages() wrapper listed only the packages inside an image rootfs. It didn't deal with target/host SDK rootfs's. Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oe/rootfs.py')
-rw-r--r--meta/lib/oe/rootfs.py19
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):
os.environ.update(env_bkp)
-def list_installed_packages(d, format=None, rootfs_dir=None):
+def image_list_installed_packages(d, format=None, rootfs_dir=None):
if not rootfs_dir:
rootfs_dir = d.getVar('IMAGE_ROOTFS', True)
img_type = d.getVar('IMAGE_PKGTYPE', True)
if img_type == "rpm":
- return RpmPM(d,
- rootfs_dir,
- d.getVar('TARGET_VENDOR', True)
- ).list_installed(format)
+ return RpmPkgsList(d, rootfs_dir).list(format)
elif img_type == "ipk":
- return OpkgPM(d,
- rootfs_dir,
- d.getVar("IPKGCONF_TARGET", True),
- d.getVar("ALL_MULTILIB_PACKAGE_ARCHS", True)
- ).list_installed(format)
+ return OpkgPkgsList(d, rootfs_dir, d.getVar("IPKGCONF_TARGET", True)).list(format)
elif img_type == "deb":
- return DpkgPM(d,
- rootfs_dir,
- d.getVar('PACKAGE_ARCHS', True),
- d.getVar('DPKG_ARCH', True)
- ).list_installed(format)
+ return DpkgPkgsList(d, rootfs_dir).list(format)
if __name__ == "__main__":
"""