rootfs_ipk bbclass: make ONLINE_PACKAGE_MANAGEMENT work on non task-base images as...
authorKoen Kooi <koen@openembedded.org>
Sun, 22 Feb 2009 10:09:34 +0000 (11:09 +0100)
committerKoen Kooi <koen@openembedded.org>
Sun, 22 Feb 2009 10:09:34 +0000 (11:09 +0100)
* This fixes the "image broken due to not running postinsts because opkg* isn't installed" type of bugs

classes/rootfs_ipk.bbclass

index e752449..10a532e 100644 (file)
@@ -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