summaryrefslogtreecommitdiff
path: root/meta/lib
diff options
context:
space:
mode:
authorRicardo Neri <ricardo.neri-calderon@linux.intel.com>2015-02-06 12:59:57 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-02-14 08:40:33 +0000
commit0387d0957909a9977efd8b2008e4d1c6d81ceb2a (patch)
treeb65fcfaf0bb1f14172935f8004a4bb1fb5976e95 /meta/lib
parent99b598927b7a3837621d9e83e69b3b4fd83afed1 (diff)
downloadopenembedded-core-0387d0957909a9977efd8b2008e4d1c6d81ceb2a.tar.gz
openembedded-core-0387d0957909a9977efd8b2008e4d1c6d81ceb2a.tar.bz2
openembedded-core-0387d0957909a9977efd8b2008e4d1c6d81ceb2a.zip
rootfs.py: ignore "NOTE:" when catching warnings
The script looks for any warn|Warn pattern in the log. However, it may happen that the warn|Warn pattern appears as part of the name of the objects described in the NOTE lines of the log. Thus, to avoid false positives, ignore the line if it contains the word "NOTE:" Signed-off-by: Ricardo Neri <ricardo.neri-calderon@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'meta/lib')
-rw-r--r--meta/lib/oe/rootfs.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/lib/oe/rootfs.py b/meta/lib/oe/rootfs.py
index f42a2ae7b3..dd7aa44fed 100644
--- a/meta/lib/oe/rootfs.py
+++ b/meta/lib/oe/rootfs.py
@@ -359,7 +359,7 @@ class RpmRootfs(Rootfs):
log_path = self.d.expand("${T}/log.do_rootfs")
with open(log_path, 'r') as log:
for line in log.read().split('\n'):
- if 'log_check' in line:
+ if 'log_check' or 'NOTE:' in line:
continue
m = r.search(line)