rootfs_rpm.bbclass: maybe no rpm postinst script
authorRobert Yang <liezhi.yang@windriver.com>
Wed, 26 Sep 2012 09:22:16 +0000 (17:22 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 24 Oct 2012 11:50:46 +0000 (12:50 +0100)
commita3cc54a6a9b999747bceecea3e28e3a0a4783989
tree820f357063d06af55d13dc48a4521fedc659ca2f
parent617137ee1c570263c791f97ee78011e1ba40ef56
rootfs_rpm.bbclass: maybe no rpm postinst script

There maybe no rpm postinst script (e.g., core-image-minimal), then the
"*" is not expanded, and there would be error:

head: cannot open `rpm-postinsts/*' for reading: No such file or directory

Check whether it exists or not will fix the problem.

[YOCTO #3172]

(From OE-Core rev: 966c72e00c8d378d7d189f0e4b626f6782d23a25)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/rootfs_rpm.bbclass