From ec8cee753fdf70ee10c6c05c7408eb68fd53990d Mon Sep 17 00:00:00 2001 From: Koen Kooi Date: Tue, 16 Jun 2009 16:09:24 +0200 Subject: image.bbclass: unbreak postinst status in the install_lingua method --- classes/image.bbclass | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'classes') diff --git a/classes/image.bbclass b/classes/image.bbclass index 43eb3f3dc7..f0cc3b3a88 100644 --- a/classes/image.bbclass +++ b/classes/image.bbclass @@ -252,6 +252,19 @@ if [ -e ${IMAGE_ROOTFS}/usr/bin/opkg-cl ] ; then cat /tmp/translation-list | xargs ${OPKG} -nodeps install rm -f ${IMAGE_ROOTFS}${libdir}/opkg/lists/* + + for i in ${IMAGE_ROOTFS}${libdir}/opkg/info/*.preinst; do + if [ -f $i ] && ! sh $i; then + opkg-cl ${IPKG_ARGS} flag unpacked `basename $i .preinst` + fi + done + + for i in ${IMAGE_ROOTFS}${libdir}/opkg/info/*.postinst; do + if [ -f $i ] && ! sh $i configure; then + opkg-cl ${IPKG_ARGS} flag unpacked `basename $i .postinst` + fi + done + fi } -- cgit 1.2.3-korg