package_deb: skip pre/postrm scripts on upgrade, write only one shebang
authorAndreas Oberritter <obi@opendreambox.org>
Fri, 10 Oct 2014 23:36:42 +0000 (18:36 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 11 Oct 2014 07:11:03 +0000 (08:11 +0100)
commitb37371fb46dd0f3bd14bc6816c6bec99d318c345
tree0c184fd9995ef9d128431400cd56aaa51d682ef1
parent8df228c35ee2b93c55b96e0f3f91a186f321a718
package_deb: skip pre/postrm scripts on upgrade, write only one shebang

Trying to upgrade busybox removing symlinks but update-alternatives
need these links (sed, cut, tail, etc) in order to work.

Adding test to avoid this scripts on upgrade fix the problem, same
solution are found in package_rpm class.

[YOCTO #6768]

(From OE-Core rev: 7b9161dd0c475cca6ea7eb507f7c3c51869eb493)

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/package_deb.bbclass