]> git.openpandora.org Git - openembedded.git/commitdiff
image.bbclass: unbreak postinst status in the install_lingua method
authorKoen Kooi <koen@openembedded.org>
Tue, 16 Jun 2009 14:09:24 +0000 (16:09 +0200)
committerKoen Kooi <koen@openembedded.org>
Tue, 16 Jun 2009 14:09:24 +0000 (16:09 +0200)
classes/image.bbclass

index 43eb3f3dc782c4ad8d11a7a8aba7f9d37cbdab05..f0cc3b3a88045abfc068662152bace1ac194b950 100644 (file)
@@ -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
 }