[oe-commits] Phil Blundell : package_ipk: Remove spurious '-i' in grep command for log_check

git at git.openembedded.org git at git.openembedded.org
Wed Sep 26 14:04:46 UTC 2012


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

Author: Phil Blundell <philb at gnu.org>
Date:   Wed Sep 26 12:55:19 2012 +0100

package_ipk: Remove spurious '-i' in grep command for log_check

ipk_log_check uses a case-sensitive grep (which is correct) when deciding
whether there were any errors or not.  But if it decides that there were, it
then uses a case-insensitive grep to display them.  This results in a large
amount of irrelevant and confusing output which makes it hard to see the real
errors amongst the noise.

Suppress this by removing the unwanted -i.

Signed-off-by: Phil Blundell <pb at pbcl.net>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

---

 meta/classes/package_ipk.bbclass |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/meta/classes/package_ipk.bbclass b/meta/classes/package_ipk.bbclass
index efe299e..59cb856 100644
--- a/meta/classes/package_ipk.bbclass
+++ b/meta/classes/package_ipk.bbclass
@@ -182,7 +182,7 @@ ipk_log_check() {
 		then
 			echo "log_check: There were error messages in the logfile"
 			printf "log_check: Matched keyword: [$keyword_die]\n\n"
-			echo "$lf_txt" | grep -v log_check | grep -C 5 -i "$keyword_die"
+			echo "$lf_txt" | grep -v log_check | grep -C 5 "$keyword_die"
 			echo ""
 			do_exit=1
 		fi





More information about the Openembedded-commits mailing list