]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
package.bbclass: run pre/post installation/removal scriptlets using sh -e
authorAlexander Kanavin <alexander.kanavin@linux.intel.com>
Mon, 12 Mar 2018 16:49:41 +0000 (18:49 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 15 Mar 2018 13:27:18 +0000 (06:27 -0700)
commitc64a57d2ecad041e2eea7bde46aab8269b31fc15
tree7f1f199a008e225dc3b0762a0ac68610d769d1d4
parent6d71fdbf204837846b2f29f048f9215a3433f3ec
package.bbclass: run pre/post installation/removal scriptlets using sh -e

This allows catching errors in the scriptlets which would otherwise
go unnoticed, e.g. this sequence:
====
bogus_command
proper_command
====
would work just fine without any visible warnings or errors.

This was previously done only for rpm packages; this patch replaces
the rpm-specific tweak with one that works for all package types.

(From OE-Core rev: a0aa12e1d0ea9064b8dd816d4e82238df765506b)

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/package.bbclass
meta/classes/package_rpm.bbclass