[oe-commits] Robert Yang : binconfig-disabled.bbclass: fix echo command

git at git.openembedded.org git at git.openembedded.org
Sun Feb 8 08:00:47 UTC 2015


Module: openembedded-core.git
Branch: master
Commit: d4adf9ac1b8318d4eb3f1c8dd82bbf04c6908eb5
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=d4adf9ac1b8318d4eb3f1c8dd82bbf04c6908eb5

Author: Robert Yang <liezhi.yang at windriver.com>
Date:   Sat Jan 31 18:04:55 2015 -0800

binconfig-disabled.bbclass: fix echo command

The ">" should be ">>".

We had got something like the following in pcap-config:
echo '--should-not-have-used-/usr/bin/pcap-config'
exit 1

(Lacks of #!/bin/sh)

Signed-off-by: Robert Yang <liezhi.yang at windriver.com>

---

 meta/classes/binconfig-disabled.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/classes/binconfig-disabled.bbclass b/meta/classes/binconfig-disabled.bbclass
index 0acc964..595cd09 100644
--- a/meta/classes/binconfig-disabled.bbclass
+++ b/meta/classes/binconfig-disabled.bbclass
@@ -12,7 +12,7 @@ do_install_append () {
 		echo "#!/bin/sh" > ${D}$x
 		# Make the disabled script emit invalid parameters for those configure
 		# scripts which call it without checking the return code.
-		echo "echo '--should-not-have-used-$x'" > ${D}$x
+		echo "echo '--should-not-have-used-$x'" >> ${D}$x
 		echo "exit 1" >> ${D}$x
 	done
 }



More information about the Openembedded-commits mailing list