module.bbclass: Don't add pkg_postinst/pkg_prerm to all packages in recipe
authorSaul Wold <sgw@linux.intel.com>
Tue, 29 Jan 2013 22:38:11 +0000 (14:38 -0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 30 Jan 2013 00:03:01 +0000 (00:03 +0000)
commit8d52ef70471f8eea847261a9004eccf57131932b
treef14cc8f41d4c0097447571e0e13dba6668a813b6
parent7b096bc5d02a6279a791fdf519339c281f42e4bf
module.bbclass: Don't add pkg_postinst/pkg_prerm to all packages in recipe

The code in module.bbclass was appending the pkg_postinst and
pkg_prerm to all packages that are part of a given recipe, meaning
that the -lic, -dev, -doc, ... packages all got the scriptlet
This change uses  only which macthes with the RDEPENDS and FILES
already used in module.bbclass.

The failure was that rootfs creation would fail due to the -lic package
being installed before the kernel and the script would fail.

[YOCTO #3803]

(From OE-Core rev: cf05c4578c99c0cb885cf2706f7f2b39b100aeb8)

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/module.bbclass