[oe-commits] Roy Li : elfutils: fix the condition check before remove eu-objdump

git at git.openembedded.org git at git.openembedded.org
Fri Nov 29 09:52:23 UTC 2013


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

Author: Roy Li <rongqing.li at windriver.com>
Date:   Tue Nov 26 13:17:09 2013 +0800

elfutils: fix the condition check before remove eu-objdump

"grep -q" does not write anything to standard output, the result is same as
a empty string, The second test becomes [!""] which is a fixed true value

Signed-off-by: Roy Li <rongqing.li at windriver.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

---

 meta/recipes-devtools/elfutils/elfutils_0.155.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-devtools/elfutils/elfutils_0.155.bb b/meta/recipes-devtools/elfutils/elfutils_0.155.bb
index 594dfb0..14eac26 100644
--- a/meta/recipes-devtools/elfutils/elfutils_0.155.bb
+++ b/meta/recipes-devtools/elfutils/elfutils_0.155.bb
@@ -48,7 +48,7 @@ do_configure_prepend() {
 }
 
 do_install_append() {
-	if [ "${TARGET_ARCH}" != "x86_64" ] && [ ! `echo "${TARGET_ARCH}"|grep -q 'i.86'` ];then
+	if [ "${TARGET_ARCH}" != "x86_64" ] && [ -z `echo "${TARGET_ARCH}"|grep 'i.86'` ];then
 		rm ${D}${bindir}/eu-objdump
 	fi
 }



More information about the Openembedded-commits mailing list