summaryrefslogtreecommitdiffstats
path: root/meta/classes/rootfs_deb.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes/rootfs_deb.bbclass')
-rw-r--r--meta/classes/rootfs_deb.bbclass27
1 files changed, 0 insertions, 27 deletions
diff --git a/meta/classes/rootfs_deb.bbclass b/meta/classes/rootfs_deb.bbclass
index abc9f3bbf5..e642cf3852 100644
--- a/meta/classes/rootfs_deb.bbclass
+++ b/meta/classes/rootfs_deb.bbclass
@@ -99,33 +99,6 @@ remove_packaging_data_files() {
99 rm -rf ${IMAGE_ROOTFS}/usr/dpkg/ 99 rm -rf ${IMAGE_ROOTFS}/usr/dpkg/
100} 100}
101 101
102# This will of course only work after rootfs_deb_do_rootfs has been called
103DPKG_QUERY_COMMAND = "${STAGING_BINDIR_NATIVE}/dpkg-query --admindir=$INSTALL_ROOTFS_DEB/var/lib/dpkg"
104
105list_installed_packages() {
106 if [ "$1" = "arch" ] ; then
107 # Here we want the PACKAGE_ARCH not the deb architecture
108 ${DPKG_QUERY_COMMAND} -W -f='${Package} ${PackageArch}\n'
109 elif [ "$1" = "file" ] ; then
110 ${DPKG_QUERY_COMMAND} -W -f='${Package} ${Package}_${Version}_${Architecture}.deb\n' | while read pkg pkgfile
111 do
112 fullpath=`find ${DEPLOY_DIR_DEB} -name "$pkgfile" || true`
113 if [ "$fullpath" = "" ] ; then
114 echo "$pkg $pkgfile"
115 else
116 echo "$pkg $fullpath"
117 fi
118 done
119 else
120 ${DPKG_QUERY_COMMAND} -W -f='${Package}\n'
121 fi
122}
123
124rootfs_list_installed_depends() {
125 # Cheat here a little bit by using the opkg query helper util
126 ${DPKG_QUERY_COMMAND} -W -f='Package: ${Package}\nDepends: ${Depends}\nRecommends: ${Recommends}\n\n' | opkg-query-helper.py
127}
128
129rootfs_install_packages() { 102rootfs_install_packages() {
130 ${STAGING_BINDIR_NATIVE}/apt-get install `cat $1` --force-yes --allow-unauthenticated 103 ${STAGING_BINDIR_NATIVE}/apt-get install `cat $1` --force-yes --allow-unauthenticated
131 104