From: Ernst Sjöstrand Date: Fri, 12 Aug 2022 06:05:06 +0000 (+0200) Subject: cve-check: Don't use f-strings X-Git-Tag: 2020-04.20~51 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4cc681fd66031c8355f69e53443536b31377eba9;p=thirdparty%2Fopenembedded%2Fopenembedded-core.git cve-check: Don't use f-strings Since we're keeping cve-check aligned between the active branches, and dunfell is supported on Python 3.5, we can't use f-strings. Signed-off-by: Ernst Sjöstrand Signed-off-by: Alexandre Belloni Signed-off-by: Richard Purdie (cherry picked from commit 1821cf7464cbba521b55a9c128fe8812c0cc5eca) Signed-off-by: Steve Sakoman --- diff --git a/meta/lib/oe/cve_check.py b/meta/lib/oe/cve_check.py index 30fdc3e3ddc..67f06448892 100644 --- a/meta/lib/oe/cve_check.py +++ b/meta/lib/oe/cve_check.py @@ -168,7 +168,7 @@ def get_cpe_ids(cve_product, version): else: vendor = "*" - cpe_id = f'cpe:2.3:a:{vendor}:{product}:{version}:*:*:*:*:*:*:*' + cpe_id = 'cpe:2.3:a:{}:{}:{}:*:*:*:*:*:*:*'.format(vendor, product, version) cpe_ids.append(cpe_id) return cpe_ids