]> code.ossystems Code Review - openembedded-core.git/commit
cve-update-db: Catch request.urlopen errors.
authorPierre Le Magourou <pierre.lemagourou@softbankrobotics.com>
Wed, 3 Jul 2019 09:35:06 +0000 (11:35 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 5 Jul 2019 11:00:15 +0000 (12:00 +0100)
commit0325dd72714f0b447558084f481b77f0ec850eed
treee5fb6f626f279d2cde4e710f009ac1f2f6abf0d8
parent3c7b6dfecd22eae369bba54437cdff91fa8542df
cve-update-db: Catch request.urlopen errors.

If the NVD url is not accessible, print a warning on top of the CVE
report, and continue. The database will not be fully updated, but
cve_check can still run on the previous database.

Signed-off-by: Pierre Le Magourou <pierre.lemagourou@softbankrobotics.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/cve-check.bbclass
meta/recipes-core/meta/cve-update-db.bb