From: Yi Zhao Date: Thu, 7 May 2020 03:24:32 +0000 (+0800) Subject: opkg-keyrings: check if opkg-key exists before run postinst X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~11169 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=096a03659cdfa99ca2b4b50ff37d6f2001d0bc90;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git 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. Signed-off-by: Yi Zhao Signed-off-by: Richard Purdie --- diff --git a/meta/recipes-devtools/opkg/opkg-keyrings_1.0.bb b/meta/recipes-devtools/opkg/opkg-keyrings_1.0.bb index a20e316a3d1..07e24025456 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 }