]> code.ossystems Code Review - openembedded-core.git/commitdiff
run-postinsts: Fix ipk package management detection
authorAníbal Limón <anibal.limon@linux.intel.com>
Thu, 25 Jun 2015 18:21:16 +0000 (13:21 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 26 Jun 2015 13:08:03 +0000 (14:08 +0100)
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 <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/run-postinsts/run-postinsts/run-postinsts

index f547a7b7bd389aee119d160ebee75481616bedda..ac9cee678bf804de92cfa86905ad148bf2a1e435 100755 (executable)
@@ -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