]> code.ossystems Code Review - openembedded-core.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>
Mon, 12 Mar 2018 22:28:04 +0000 (15:28 -0700)
commita0aa12e1d0ea9064b8dd816d4e82238df765506b
tree1f3bc14b1baa1777987bf45839d866f23115a00e
parente37c4f1ff2b440b0a232b0482c136cc9f7b24e0f
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.

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