diff options
-rw-r--r-- | meta/classes/package_deb.bbclass | 16 | ||||
-rw-r--r-- | meta/classes/rootfs_deb.bbclass | 6 |
2 files changed, 16 insertions, 6 deletions
diff --git a/meta/classes/package_deb.bbclass b/meta/classes/package_deb.bbclass index 7a28a3915a..c56e143eb6 100644 --- a/meta/classes/package_deb.bbclass +++ b/meta/classes/package_deb.bbclass @@ -115,6 +115,22 @@ package_install_internal_deb () { apt-get update + # prime the status file with bits that we don't want + for i in ${BAD_RECOMMENDATIONS}; do + pkginfo="`apt-cache show $i`" + if [ ! -z "$pkginfo" ]; then + # Take just the first package stanza as otherwise only + # the last one will have the right Status line. + echo "$pkginfo" | awk "/^Package:/ { print } \ + /^Architecture:/ { print } \ + /^Version:/ { print } \ + /^$/ { exit } \ + END { print \"Status: hold ok not-installed\n\" }" - >> ${IMAGE_ROOTFS}/var/lib/dpkg/status + else + echo "Requested ignored recommendation $i is not a package" + fi + done + if [ ! -z "${package_linguas}" ]; then for i in ${package_linguas}; do apt-get ${APT_ARGS} install $i --force-yes --allow-unauthenticated diff --git a/meta/classes/rootfs_deb.bbclass b/meta/classes/rootfs_deb.bbclass index 8613032f2a..14c83f05f3 100644 --- a/meta/classes/rootfs_deb.bbclass +++ b/meta/classes/rootfs_deb.bbclass @@ -11,12 +11,6 @@ rootfs_deb_do_rootfs[vardepsexclude] += "BUILDNAME" do_rootfs[lockfiles] += "${DEPLOY_DIR_DEB}/deb.lock" -python rootfs_deb_bad_recommendations() { - if d.getVar("BAD_RECOMMENDATIONS", True): - bb.warn("Debian package install does not support BAD_RECOMMENDATIONS") -} -do_rootfs[prefuncs] += "rootfs_deb_bad_recommendations" - DEB_POSTPROCESS_COMMANDS = "" opkglibdir = "${localstatedir}/lib/opkg" |