diff options
author | Aníbal Limón <anibal.limon@linux.intel.com> | 2015-06-25 13:21:16 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-06-26 14:08:03 +0100 |
commit | 84dcc8dded5761e24e09dbcc822445ce3dd69497 (patch) | |
tree | 1ca6632e0e29d8c2744eaf40eaf8c5dd82e3595c /meta/recipes-devtools/run-postinsts | |
parent | ed52d1040ee8be0bfa080d5679c583b1012bb575 (diff) | |
download | openembedded-core-84dcc8dded5761e24e09dbcc822445ce3dd69497.tar.gz openembedded-core-84dcc8dded5761e24e09dbcc822445ce3dd69497.tar.bz2 openembedded-core-84dcc8dded5761e24e09dbcc822445ce3dd69497.zip |
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 <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/run-postinsts')
-rwxr-xr-x | meta/recipes-devtools/run-postinsts/run-postinsts/run-postinsts | 5 |
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 |