]> code.ossystems Code Review - openembedded-core.git/commit
cve-update-db-native: clean up JSON fetching
authorRoss Burton <ross.burton@intel.com>
Wed, 6 Nov 2019 15:37:41 +0000 (17:37 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 6 Nov 2019 20:44:15 +0000 (20:44 +0000)
commit1d34aec479156a7dadf7867bbf0d53f12d21ef3e
treeaedd837598af846d5f794863565c1ad71f34d60b
parentc718e073e8e9cd5df9e19dd02fcac2139758b5b7
cve-update-db-native: clean up JSON fetching

Currently the code fetches the compressed JSON, writes it to a temporary file,
uncompresses that with gzip and passes the fake file object to update_db().

Instead, uncompress the gzip'd data in memory and pass the JSON directly to
update_db().

(From OE-Core rev: 9422745979256c442f533770203f62ec071c18fb)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/meta/cve-update-db-native.bb