aboutsummaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/run-postinsts
diff options
context:
space:
mode:
authorAníbal Limón <anibal.limon@linux.intel.com>2015-06-25 13:21:16 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-06-27 22:42:52 +0100
commit64229cb5d44d63af4eccd54509166d25d925cd05 (patch)
tree29f47cff4f2cc3175ceaddd1e40288c30b1c2c96 /meta/recipes-devtools/run-postinsts
parentb2c9e7347acdfd0efe1c3dabb853d609233b61b6 (diff)
downloadopenembedded-core-contrib-64229cb5d44d63af4eccd54509166d25d925cd05.tar.gz
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. (From OE-Core rev: 84dcc8dded5761e24e09dbcc822445ce3dd69497) Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/run-postinsts')
-rwxr-xr-xmeta/recipes-devtools/run-postinsts/run-postinsts/run-postinsts5
1 files changed, 4 insertions, 1 deletions
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