]> code.ossystems Code Review - openembedded-core.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>
Sat, 20 Jul 2019 11:04:24 +0000 (12:04 +0100)
commit9422745979256c442f533770203f62ec071c18fb
treecb5281a5943ee7d3cac09a1dd8bfff99cc16068e
parentbb4e53af33d6ca1e9346464adbdc1b39c47530f3
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().

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