Patchwork package_deb: When searching for E:, anchor expression

login
register
mail settings
Submitter Richard Purdie
Date June 29, 2012, 3:51 p.m.
Message ID <1340985082.23146.172.camel@ted>
Download mbox | patch
Permalink /patch/30873/
State Accepted
Commit 8f4e160ce0b0c755545d62b06db14decd45b9f1e
Headers show

Comments

Richard Purdie - June 29, 2012, 3:51 p.m.
If we don't do this it will match on expressions like "NOTE:" which
are not fatal errors.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---

Patch

diff --git a/meta/classes/package_deb.bbclass b/meta/classes/package_deb.bbclass
index 0a3e976..0a8dc1b 100644
--- a/meta/classes/package_deb.bbclass
+++ b/meta/classes/package_deb.bbclass
@@ -187,7 +187,7 @@  deb_log_check() {
 	lf_path="$2"
 
 	lf_txt="`cat $lf_path`"
-	for keyword_die in "E:"
+	for keyword_die in "^E:"
 	do
 		if (echo "$lf_txt" | grep -v log_check | grep "$keyword_die") >/dev/null 2>&1
 		then