diff options
author | Ross Burton <ross.burton@intel.com> | 2019-12-08 20:35:49 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-01-16 22:38:52 +0000 |
commit | 50b6a611eafa7a0e3ca1971b4dcb485187928d68 (patch) | |
tree | db288aad481b25c5ffdc03fde81cb65ad6d83a01 /meta/classes/cve-check.bbclass | |
parent | 0be3c68cf444ea746aaeda6a071791949d7e9970 (diff) | |
download | poky-50b6a611eafa7a0e3ca1971b4dcb485187928d68.tar.gz |
cve-check: failure to parse versions should be more visible
(From OE-Core rev: d1a16e6f0edda5d9f03191d187788fc8b666bd7f)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/cve-check.bbclass')
-rw-r--r-- | meta/classes/cve-check.bbclass | 4 |
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): | |||
222 | to_append_start = (operator_start == '>=' and LooseVersion(pv) >= LooseVersion(version_start)) | 222 | to_append_start = (operator_start == '>=' and LooseVersion(pv) >= LooseVersion(version_start)) |
223 | to_append_start |= (operator_start == '>' and LooseVersion(pv) > LooseVersion(version_start)) | 223 | to_append_start |= (operator_start == '>' and LooseVersion(pv) > LooseVersion(version_start)) |
224 | except: | 224 | except: |
225 | bb.note("%s: Failed to compare %s %s %s for %s" % | 225 | bb.warn("%s: Failed to compare %s %s %s for %s" % |
226 | (product, pv, operator_start, version_start, cve)) | 226 | (product, pv, operator_start, version_start, cve)) |
227 | to_append_start = False | 227 | to_append_start = False |
228 | else: | 228 | else: |
@@ -233,7 +233,7 @@ def check_cves(d, patched_cves): | |||
233 | to_append_end = (operator_end == '<=' and LooseVersion(pv) <= LooseVersion(version_end)) | 233 | to_append_end = (operator_end == '<=' and LooseVersion(pv) <= LooseVersion(version_end)) |
234 | to_append_end |= (operator_end == '<' and LooseVersion(pv) < LooseVersion(version_end)) | 234 | to_append_end |= (operator_end == '<' and LooseVersion(pv) < LooseVersion(version_end)) |
235 | except: | 235 | except: |
236 | bb.note("%s: Failed to compare %s %s %s for %s" % | 236 | bb.warn("%s: Failed to compare %s %s %s for %s" % |
237 | (product, pv, operator_end, version_end, cve)) | 237 | (product, pv, operator_end, version_end, cve)) |
238 | to_append_end = False | 238 | to_append_end = False |
239 | else: | 239 | else: |