]> code.ossystems Code Review - openembedded-core.git/commit
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:47:28 +0000 (12:47 +0100)
commit966c72e00c8d378d7d189f0e4b626f6782d23a25
treef17e361b99580be6d51e5aed69482a5741bbf88d
parentc76da87511d2668479745c2f18b8a9b8116c7489
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]

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