]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
cve-update-nvd2-native: Handle BB_NO_NETWORK and missing db
authorMark Hatle <mark.hatle@amd.com>
Tue, 12 Nov 2024 21:23:11 +0000 (15:23 -0600)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 19 Nov 2024 11:38:14 +0000 (11:38 +0000)
commit337c0806d2784d74bee8d6420fb8b4d48795d5fa
tree2cca764750eaddd56832ccb56760e63ed2a1f449
parent0f51fee4a5408c17cbaf827053f13d6c3b9dbc2c
cve-update-nvd2-native: Handle BB_NO_NETWORK and missing db

The custom do_fetch routine is ignoring BB_NO_NETWORK, add a check for this
as the correct behavior for the user is to set:
  CVE_DB_UPDATE_INTERVAL = "-1"

If CVE_DB_UPDATE_INTERNAL is set to -1, check that a DB file exists, if not
we need to error so the user can deal with this.

Note, MIRRORs are NOT handled by this code.

Signed-off-by: Mark Hatle <mark.hatle@amd.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/meta/cve-update-nvd2-native.bb