summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKoen Kooi <koen@openembedded.org>2009-02-22 11:09:34 +0100
committerKoen Kooi <koen@openembedded.org>2009-02-22 11:09:34 +0100
commit93e360f072cd879097c1c54e7da4407094d682fa (patch)
tree1a136ce7a51126de4c0a870124d2d809c50bbdbb
parent871a0a944e8c16c2bb7f012e5411618d11106d2e (diff)
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
-rw-r--r--classes/rootfs_ipk.bbclass5
1 files changed, 4 insertions, 1 deletions
diff --git a/classes/rootfs_ipk.bbclass b/classes/rootfs_ipk.bbclass
index e752449305..10a532e0a9 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