Skip to contentSkip to conversation

rootfs_rpm.bbclass: fix a bug in run-postinst script

PATCH New [email protected] 1 participant 2 messages Jan 29, 2013

lore
Share & tools
lore
#0 lore raw

cover rootfs_rpm.bbclass: fix a bug in run-postinst script

From: Chen Qi <[email protected]>

The following changes since commit cfb082961a6c9ac3d65738031c4071210529cd07:

bitbake: build.py: Dump out performance data of individual tasks (2013-01-28 14:49:05 +0000)

are available in the git repository at:

git://git.pokylinux.org/poky-contrib ChenQi/rootfs_rpm-fix-error
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=ChenQi/rootfs_rpm-fix-error

Chen Qi (1):
rootfs_rpm.bbclass: fix a bug in run-postinst script

 meta/classes/rootfs_rpm.bbclass |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Signature · 1 line
1.7.9.5
#1 lore raw

PATCH 1/1 rootfs_rpm.bbclass: fix a bug in run-postinst script

From: Chen Qi <[email protected]>

This is a follow-up patch which fixes a bug introduced by the commit bd10a6d257ab5ce2fc961788c278af7c43637404.

The `` command substitution characters should be excaped by \ to make things work correctly.

[YOCTO #3767]

---
 meta/classes/rootfs_rpm.bbclass |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/classes/rootfs_rpm.bbclass +1 -1
index accd7d9..119bf92 100644
@@ -108,7 +108,7 @@ fakeroot rootfs_rpm_do_rootfs () {
 	i=\$i
 	cat > ${IMAGE_ROOTFS}${sysconfdir}/rcS.d/S${POSTINSTALL_INITPOSITION}run-postinsts << EOF
 #!/bin/sh
-for i in `ls /etc/rpm-postinsts/`; do
+for i in \`ls /etc/rpm-postinsts/\`; do
 	i=/etc/rpm-postinsts/$i
 	echo "Running postinst $i..."
 	if [ -f $i ] && $i; then
Signature · 1 line
1.7.9.5