]> code.ossystems Code Review - openembedded-core.git/commit
cve-update-db-native: fix https proxy issues
authorChin Huat Ang <chin.huat.ang@intel.com>
Wed, 6 Nov 2019 15:37:42 +0000 (17:37 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 6 Nov 2019 20:44:15 +0000 (20:44 +0000)
commit6d3222fb7ecde524c4e033729318fb0fb80a444c
tree8ebacf236d8a11029e8a21db57162f756ce8bb80
parent1d34aec479156a7dadf7867bbf0d53f12d21ef3e
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.

(From OE-Core rev: 95438d52b732bec217301fbfc2fb019bbc3707c8)

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