aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2019-10-18 01:30:55 +0100
committerArmin Kuster <akuster808@gmail.com>2019-11-10 14:13:54 -0800
commit6b5cadd1a5822641285946f7e2ad56e294658621 (patch)
tree26a10364d093efaea178c68331b234fab8ebb480
parent6017a468d61afbdc6c3e3c406adb16d49ca08fd3 (diff)
downloadopenembedded-core-contrib-6b5cadd1a5822641285946f7e2ad56e294658621.tar.gz
openembedded-core-contrib-6b5cadd1a5822641285946f7e2ad56e294658621.tar.bz2
openembedded-core-contrib-6b5cadd1a5822641285946f7e2ad56e294658621.zip
cve-check: failure to parse versions should be more visible
Signed-off-by: Armin Kuster <akuster808@gmail.com>
-rw-r--r--meta/classes/cve-check.bbclass4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/classes/cve-check.bbclass b/meta/classes/cve-check.bbclass
index f87bcc9dc6..1c8b2223a2 100644
--- a/meta/classes/cve-check.bbclass
+++ b/meta/classes/cve-check.bbclass
@@ -222,7 +222,7 @@ def check_cves(d, patched_cves):
to_append_start = (operator_start == '>=' and LooseVersion(pv) >= LooseVersion(version_start))
to_append_start |= (operator_start == '>' and LooseVersion(pv) > LooseVersion(version_start))
except:
- bb.note("%s: Failed to compare %s %s %s for %s" %
+ bb.warn("%s: Failed to compare %s %s %s for %s" %
(product, pv, operator_start, version_start, cve))
to_append_start = False
else:
@@ -233,7 +233,7 @@ def check_cves(d, patched_cves):
to_append_end = (operator_end == '<=' and LooseVersion(pv) <= LooseVersion(version_end))
to_append_end |= (operator_end == '<' and LooseVersion(pv) < LooseVersion(version_end))
except:
- bb.note("%s: Failed to compare %s %s %s for %s" %
+ bb.warn("%s: Failed to compare %s %s %s for %s" %
(product, pv, operator_end, version_end, cve))
to_append_end = False
else: