summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/opkg/opkg-keyrings_1.0.bb
diff options
context:
space:
mode:
authorYi Zhao <yi.zhao@windriver.com>2020-05-07 11:24:32 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-05-22 16:23:23 +0100
commit5f904d42b3a0bb5a26f4cfcbe852755e11f77e1d (patch)
tree71d9274133af3cb720736ba25b5ac2b9ff95d4c2 /meta/recipes-devtools/opkg/opkg-keyrings_1.0.bb
parent4bf427dc0d4675bc193366cf5e0befcd32f7616e (diff)
downloadpoky-5f904d42b3a0bb5a26f4cfcbe852755e11f77e1d.tar.gz
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 <yi.zhao@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Steve Sakoman <steve@sakoman.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/opkg/opkg-keyrings_1.0.bb')
-rw-r--r--meta/recipes-devtools/opkg/opkg-keyrings_1.0.bb5
1 files changed, 4 insertions, 1 deletions
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"
36RDEPENDS_${PN} = "opkg" 36RDEPENDS_${PN} = "opkg"
37 37
38pkg_postinst_ontarget_${PN} () { 38pkg_postinst_ontarget_${PN} () {
39opkg-key populate 39 if test -x ${bindir}/opkg-key
40 then
41 ${bindir}/opkg-key populate
42 fi
40} 43}