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: lucaceresoli/bug-15201-perf-libtraceevent-missing~29965 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=84dcc8dded5761e24e09dbcc822445ce3dd69497;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.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 f547a7b7bd3..ac9cee678bf 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