summaryrefslogtreecommitdiffstats
path: root/meta
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:50:46 +0100
commit553d9dbe0e426a4f933bef291cabfea7ae80f51a (patch)
treea23ebf143c36ae0556652c944312271960e37f94 /meta
parentc45a7d127e76a43069f12483b7453a3778ae0126 (diff)
downloadpoky-553d9dbe0e426a4f933bef291cabfea7ae80f51a.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] (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>
Diffstat (limited to 'meta')
-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 d95ccfad2b..c86cd094ff 100644
--- a/meta/classes/rootfs_rpm.bbclass
+++ b/meta/classes/rootfs_rpm.bbclass
@@ -81,7 +81,9 @@ fakeroot rootfs_rpm_do_rootfs () {
81 81
82 # Report delayed package scriptlets 82 # Report delayed package scriptlets
83 for i in ${IMAGE_ROOTFS}/etc/rpm-postinsts/*; do 83 for i in ${IMAGE_ROOTFS}/etc/rpm-postinsts/*; do
84 echo "Delayed package scriptlet: `head -n 3 $i | tail -n 1`" 84 if [ -f $i ]; then
85 echo "Delayed package scriptlet: `head -n 3 $i | tail -n 1`"
86 fi
85 done 87 done
86 88
87 install -d ${IMAGE_ROOTFS}/${sysconfdir}/rcS.d 89 install -d ${IMAGE_ROOTFS}/${sysconfdir}/rcS.d