]> code.ossystems Code Review - openembedded-core.git/commit
cve-update-db-native: fix https proxy issues
authorChin Huat Ang <chin.huat.ang@intel.com>
Thu, 25 Jul 2019 02:01:20 +0000 (10:01 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 26 Jul 2019 07:40:59 +0000 (08:40 +0100)
commit95438d52b732bec217301fbfc2fb019bbc3707c8
tree3da316d9b2bd5e7b61fdde6e06a726461d202ffe
parent7e2ee2b59319e1d2c185d65de47cc8f5c048dd03
cve-update-db-native: fix https proxy issues

When https_proxy is set, use proxy opener to open CVE metadata and
database URLs, otherwise fallback to the urllib.request.urlopen.

Also fix a minor issue where the json database which has been gzip
decompressed as byte object should be decoded as utf-8 string as
expected by update_db.

Signed-off-by: Chin Huat Ang <chin.huat.ang@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/meta/cve-update-db-native.bb