diff options
| author | Marta Rybczynska <rybczynska@gmail.com> | 2022-06-03 10:56:14 +0200 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-06-11 10:06:13 +0100 |
| commit | 50ee11d88fb02cc246c2034890210d7b940844bb (patch) | |
| tree | 3a801f2a353b97338e6d79e0f632d22071feaa22 /meta/classes | |
| parent | 34eecaa053b257443a18d4b20cab660621f03128 (diff) | |
| download | poky-50ee11d88fb02cc246c2034890210d7b940844bb.tar.gz | |
cve-check: fix return type in check_cves
Make empty return types in check_cvs the same for all code paths.
(From OE-Core rev: 2fc716ad75dcc59000dcc18143f06bcdf43be242)
Signed-off-by: Marta Rybczynska <marta.rybczynska@huawei.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit f86393c93dec47b24e837d0c4c5761a716ecdbb6)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
| -rw-r--r-- | meta/classes/cve-check.bbclass | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/cve-check.bbclass b/meta/classes/cve-check.bbclass index 0c5f40b78d..1b4910f737 100644 --- a/meta/classes/cve-check.bbclass +++ b/meta/classes/cve-check.bbclass | |||
| @@ -264,7 +264,7 @@ def check_cves(d, patched_cves): | |||
| 264 | products = d.getVar("CVE_PRODUCT").split() | 264 | products = d.getVar("CVE_PRODUCT").split() |
| 265 | # If this has been unset then we're not scanning for CVEs here (for example, image recipes) | 265 | # If this has been unset then we're not scanning for CVEs here (for example, image recipes) |
| 266 | if not products: | 266 | if not products: |
| 267 | return ([], [], [], {}) | 267 | return ([], [], [], []) |
| 268 | pv = d.getVar("CVE_VERSION").split("+git")[0] | 268 | pv = d.getVar("CVE_VERSION").split("+git")[0] |
| 269 | 269 | ||
| 270 | # If the recipe has been skipped/ignored we return empty lists | 270 | # If the recipe has been skipped/ignored we return empty lists |
