[oe-commits] =?UTF-8?Q?An=C3=ADbal=20Lim=C3=B3n=20?=: run-postinsts: Fix ipk package management detection
git at git.openembedded.org
git at git.openembedded.org
Fri Jun 26 13:09:01 UTC 2015
Module: openembedded-core.git
Branch: master-next
Commit: 84dcc8dded5761e24e09dbcc822445ce3dd69497
URL: http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=84dcc8dded5761e24e09dbcc822445ce3dd69497
Author: Aníbal Limón <anibal.limon at linux.intel.com>
Date: Thu Jun 25 13:21:16 2015 -0500
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 at linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
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
More information about the Openembedded-commits
mailing list