]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
cve-update-db-native: clean up JSON fetching
authorRoss Burton <ross.burton@intel.com>
Fri, 19 Jul 2019 20:33:19 +0000 (21:33 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 22 Jul 2019 16:31:03 +0000 (17:31 +0100)
commit82b5ed6acf2c1755eadc7901c0aa2952d7f9adbc
treecd39c66f3483078a90956e3d92b59a0b184a337d
parent297605eec0077c82ee7405c0172643e3cec85c3a
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