[oe-commits] Koen Kooi : image.bbclass: unbreak postinst status in the install_lingua method

git version control git at git.openembedded.org
Tue Jun 16 14:16:29 UTC 2009


Module: openembedded.git
Branch: org.openembedded.dev
Commit: ec8cee753fdf70ee10c6c05c7408eb68fd53990d
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=ec8cee753fdf70ee10c6c05c7408eb68fd53990d

Author: Koen Kooi <koen at openembedded.org>
Date:   Tue Jun 16 16:09:24 2009 +0200

image.bbclass: unbreak postinst status in the install_lingua method

---

 classes/image.bbclass |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/classes/image.bbclass b/classes/image.bbclass
index 43eb3f3..f0cc3b3 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
 }
 





More information about the Openembedded-commits mailing list