* [PATCH] package_ipk: Remove spurious '-i' in grep command for log_check
@ 2012-09-26 11:55 Phil Blundell
2012-09-27 15:53 ` Saul Wold
0 siblings, 1 reply; 2+ messages in thread
From: Phil Blundell @ 2012-09-26 11:55 UTC (permalink / raw)
To: openembedded-core
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@pbcl.net>
---
meta/classes/package_ipk.bbclass | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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
--
1.7.10.4
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH] package_ipk: Remove spurious '-i' in grep command for log_check
2012-09-26 11:55 [PATCH] package_ipk: Remove spurious '-i' in grep command for log_check Phil Blundell
@ 2012-09-27 15:53 ` Saul Wold
0 siblings, 0 replies; 2+ messages in thread
From: Saul Wold @ 2012-09-27 15:53 UTC (permalink / raw)
To: Phil Blundell; +Cc: openembedded-core
On 09/26/2012 04:55 AM, Phil Blundell wrote:
> 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@pbcl.net>
> ---
> meta/classes/package_ipk.bbclass | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> 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
>
Merged into OE-Core
Thanks
Sau!
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-09-27 16:06 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-26 11:55 [PATCH] package_ipk: Remove spurious '-i' in grep command for log_check Phil Blundell
2012-09-27 15:53 ` Saul Wold
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox