From: Aníbal Limón Date: Thu, 25 Jun 2015 18:21:16 +0000 (-0500) Subject: run-postinsts: Fix ipk package management detection X-Git-Tag: 2015-10~1452 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=84dcc8dded5761e24e09dbcc822445ce3dd69497;p=openembedded-core.git run-postinsts: Fix ipk package management detection run-postinsts always mark ipk package management as true, causing problems when try to execute opkg-cl and isn't present. Signed-off-by: Aníbal Limón Signed-off-by: Richard Purdie --- 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