aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2021-07-30 00:20:47 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-08-01 13:47:32 +0100
commit7762b07bf3b0c77b91ad91963ab39d3c73770ebf (patch)
treeb7eebd88e9114a804b43f480acfb81e668e88733
parent8979de58dc49fb4f8bc55743a1a4bf613c675a4e (diff)
downloadopenembedded-core-contrib-7762b07bf3b0c77b91ad91963ab39d3c73770ebf.tar.gz
openembedded-core-contrib-7762b07bf3b0c77b91ad91963ab39d3c73770ebf.tar.bz2
openembedded-core-contrib-7762b07bf3b0c77b91ad91963ab39d3c73770ebf.zip
dropbear: Fix incorrect package override for postrm
This bug has been around for a long time (2011) but fix it to do what was intended originally. The postrm is changed by classes but those should append to existing entries. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-core/dropbear/dropbear.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/recipes-core/dropbear/dropbear.inc b/meta/recipes-core/dropbear/dropbear.inc
index b5f3778abec..f2a490c4736 100644
--- a/meta/recipes-core/dropbear/dropbear.inc
+++ b/meta/recipes-core/dropbear/dropbear.inc
@@ -114,7 +114,7 @@ ALTERNATIVE:${PN} = "${@bb.utils.filter('BINCOMMANDS', 'scp ssh', d)}"
ALTERNATIVE_TARGET = "${sbindir}/dropbearmulti"
-pkg_postrm:append_${PN} () {
+pkg_postrm:${PN} () {
if [ -f "${sysconfdir}/dropbear/dropbear_rsa_host_key" ]; then
rm ${sysconfdir}/dropbear/dropbear_rsa_host_key
fi