aboutsummaryrefslogtreecommitdiffstats
path: root/meta/classes/rootfs_rpm.bbclass
diff options
context:
space:
mode:
authorRobert Yang <liezhi.yang@windriver.com>2012-09-26 17:22:16 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-10-24 12:47:28 +0100
commit966c72e00c8d378d7d189f0e4b626f6782d23a25 (patch)
treef17e361b99580be6d51e5aed69482a5741bbf88d /meta/classes/rootfs_rpm.bbclass
parentc76da87511d2668479745c2f18b8a9b8116c7489 (diff)
downloadopenembedded-core-contrib-966c72e00c8d378d7d189f0e4b626f6782d23a25.tar.gz
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>
Diffstat (limited to 'meta/classes/rootfs_rpm.bbclass')
-rw-r--r--meta/classes/rootfs_rpm.bbclass4
1 files changed, 3 insertions, 1 deletions
diff --git a/meta/classes/rootfs_rpm.bbclass b/meta/classes/rootfs_rpm.bbclass
index d95ccfad2bd..c86cd094ff1 100644
--- a/meta/classes/rootfs_rpm.bbclass
+++ b/meta/classes/rootfs_rpm.bbclass
@@ -81,7 +81,9 @@ fakeroot rootfs_rpm_do_rootfs () {
# Report delayed package scriptlets
for i in ${IMAGE_ROOTFS}/etc/rpm-postinsts/*; do
- echo "Delayed package scriptlet: `head -n 3 $i | tail -n 1`"
+ if [ -f $i ]; then
+ echo "Delayed package scriptlet: `head -n 3 $i | tail -n 1`"
+ fi
done
install -d ${IMAGE_ROOTFS}/${sysconfdir}/rcS.d