summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
Diffstat (limited to 'meta')
-rw-r--r--meta/classes/rootfs_deb.bbclass23
1 files changed, 23 insertions, 0 deletions
diff --git a/meta/classes/rootfs_deb.bbclass b/meta/classes/rootfs_deb.bbclass
index bab8e1e8c7..bef055c6f5 100644
--- a/meta/classes/rootfs_deb.bbclass
+++ b/meta/classes/rootfs_deb.bbclass
@@ -81,3 +81,26 @@ remove_packaging_data_files() {
81 rm -rf ${IMAGE_ROOTFS}${opkglibdir} 81 rm -rf ${IMAGE_ROOTFS}${opkglibdir}
82 rm -rf ${IMAGE_ROOTFS}/usr/dpkg/ 82 rm -rf ${IMAGE_ROOTFS}/usr/dpkg/
83} 83}
84
85DPKG_QUERY_COMMAND = "${STAGING_BINDIR_NATIVE}/dpkg --admindir=${IMAGE_ROOTFS}/var/lib/dpkg"
86
87list_installed_packages() {
88 ${DPKG_QUERY_COMMAND} -l | grep ^ii | awk '{ print $2 }'
89}
90
91get_package_filename() {
92 fullname=`find ${DEPLOY_DIR_DEB} -name "$1_*.deb" || true`
93 if [ "$fullname" = "" ] ; then
94 echo $name
95 else
96 echo $fullname
97 fi
98}
99
100list_package_depends() {
101 ${DPKG_QUERY_COMMAND} -s $1 | grep ^Depends | sed -e 's/^Depends: //' -e 's/,//g' -e 's:([=<>]* [0-9a-zA-Z.~\-]*)::g'
102}
103
104list_package_recommends() {
105 ${DPKG_QUERY_COMMAND} -s $1 | grep ^Recommends | sed -e 's/^Recommends: //' -e 's/,//g' -e 's:([=<>]* [0-9a-zA-Z.~\-]*)::g'
106}