[OE-core] [PATCH 2/2] run-postinsts: Fix ipk package management detection
Aníbal Limón
anibal.limon at linux.intel.com
Thu Jun 25 18:21:16 UTC 2015
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 at linux.intel.com>
---
meta/recipes-devtools/run-postinsts/run-postinsts/run-postinsts | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/meta/recipes-devtools/run-postinsts/run-postinsts/run-postinsts b/meta/recipes-devtools/run-postinsts/run-postinsts/run-postinsts
index f547a7b..ac9cee6 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
--
1.9.1
More information about the Openembedded-core
mailing list