From 64229cb5d44d63af4eccd54509166d25d925cd05 Mon Sep 17 00:00:00 2001 From: Aníbal Limón Date: Thu, 25 Jun 2015 13:21:16 -0500 Subject: run-postinsts: Fix ipk package management detection MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit run-postinsts always mark ipk package management as true, causing problems when try to execute opkg-cl and isn't present. (From OE-Core rev: 84dcc8dded5761e24e09dbcc822445ce3dd69497) Signed-off-by: Aníbal Limón Signed-off-by: Richard Purdie --- meta/recipes-devtools/run-postinsts/run-postinsts/run-postinsts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/meta/recipes-devtools/run-postinsts/run-postinsts/run-postinsts b/meta/recipes-devtools/run-postinsts/run-postinsts/run-postinsts index f547a7b7bd..ac9cee678b 100755 --- a/meta/recipes-devtools/run-postinsts/run-postinsts/run-postinsts +++ b/meta/recipes-devtools/run-postinsts/run-postinsts/run-postinsts @@ -27,7 +27,10 @@ for pm in $backend_list; do ;; "ipk") - pm_installed=true + if [ -s "/var/lib/opkg/status" ]; then + pm_installed=true + break + fi ;; esac done -- cgit v1.2.3-54-g00ecf