From 5f904d42b3a0bb5a26f4cfcbe852755e11f77e1d Mon Sep 17 00:00:00 2001 From: Yi Zhao Date: Thu, 7 May 2020 11:24:32 +0800 Subject: opkg-keyrings: check if opkg-key exists before run postinst By default, the opkg-key command is not included in pokg package because it is only installed when gpg support is enabled. We'd better check if it exists before run 'opkg-key populate' in pkg_postinst. (From OE-Core rev: 174c27e4edea0af92f60779cf3f63d21f6bce6fe) Signed-off-by: Yi Zhao Signed-off-by: Richard Purdie Signed-off-by: Steve Sakoman Signed-off-by: Richard Purdie --- meta/recipes-devtools/opkg/opkg-keyrings_1.0.bb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'meta/recipes-devtools') diff --git a/meta/recipes-devtools/opkg/opkg-keyrings_1.0.bb b/meta/recipes-devtools/opkg/opkg-keyrings_1.0.bb index a20e316a3d..07e2402545 100644 --- a/meta/recipes-devtools/opkg/opkg-keyrings_1.0.bb +++ b/meta/recipes-devtools/opkg/opkg-keyrings_1.0.bb @@ -36,5 +36,8 @@ FILES_${PN} = "${datadir}/opkg/keyrings" RDEPENDS_${PN} = "opkg" pkg_postinst_ontarget_${PN} () { -opkg-key populate + if test -x ${bindir}/opkg-key + then + ${bindir}/opkg-key populate + fi } -- cgit v1.2.3-54-g00ecf