From: Koen Kooi Date: Sun, 22 Feb 2009 10:09:34 +0000 (+0100) Subject: rootfs_ipk bbclass: make ONLINE_PACKAGE_MANAGEMENT work on non task-base images as... X-Git-Tag: SlugOS5.3-beta~8 X-Git-Url: http://code.vuplus.com/gitweb/?p=vuplus_openembedded;a=commitdiff_plain;h=93e360f072cd879097c1c54e7da4407094d682fa rootfs_ipk bbclass: make ONLINE_PACKAGE_MANAGEMENT work on non task-base images as well * This fixes the "image broken due to not running postinsts because opkg* isn't installed" type of bugs --- diff --git a/classes/rootfs_ipk.bbclass b/classes/rootfs_ipk.bbclass index e752449..10a532e 100644 --- a/classes/rootfs_ipk.bbclass +++ b/classes/rootfs_ipk.bbclass @@ -21,7 +21,10 @@ ONLINE_PACKAGE_MANAGEMENT ?= "full" # Which packages to not install on the basis of a recommendation BAD_RECOMMENDATIONS ?= "" -DISTRO_EXTRA_RDEPENDS += "${@base_conditional("ONLINE_PACKAGE_MANAGEMENT", "none", "", "opkg opkg-collateral", d)}" +IPKG_VARIANT ?= "opkg" + +RDEPENDS += "${@base_conditional("ONLINE_PACKAGE_MANAGEMENT", "none", "", "${IPKG_VARIANT} opkg-collateral", d)}" +PACKAGE_INSTALL += "${@base_conditional("ONLINE_PACKAGE_MANAGEMENT", "none", "", "${IPKG_VARIANT} opkg-collateral", d)}" fakeroot rootfs_ipk_do_rootfs () { set -x