diff options
author | Chen Qi <Qi.Chen@windriver.com> | 2015-03-12 10:19:52 +0800 |
---|---|---|
committer | Chen Qi <Qi.Chen@windriver.com> | 2015-03-12 10:32:11 +0800 |
commit | bdcf84820960e05397fdc52b1fed6ae4e56fc6d0 (patch) | |
tree | 4baad38a7ce1d938f1dde1f401c273b8fbadb170 | |
parent | 99f209a49a4390192b95184ff86bd6f973010111 (diff) | |
download | openembedded-core-contrib-ChenQi/rootfs-log-check.tar.gz |
rootfs.py: fix logic error so that warnings are checkedChenQi/rootfs-log-check
The following commit caused log checking for warnings not working for RPM
rootfs.
rootfs.py: ignore "NOTE:" when catching warnings
The problem is that checking for warnings is always skipped because the
following statement is always true.
if 'log_check' or 'NOTE:' in line:
This patch fixes the above problem so that warning checking in RPM rootfs
can work again.
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
-rw-r--r-- | meta/lib/oe/rootfs.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/lib/oe/rootfs.py b/meta/lib/oe/rootfs.py index dd7aa44fed..7e8d5d15a2 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' or 'NOTE:' in line: + if 'log_check' in line or 'NOTE:' in line: continue m = r.search(line) |