]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
cve-update-db-native: clean DB if temporary file exist
authorLee Chee Yang <chee.yang.lee@intel.com>
Fri, 27 Mar 2020 03:57:43 +0000 (11:57 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 29 Mar 2020 19:03:30 +0000 (20:03 +0100)
commit70713df25b8ae27a21e53b0b9234567d7053800a
tree5fc862bdc6278bb9e7237fa705e01db7f3003414
parent5e44fb4dd106e3c4b9f072b25a93e54fa7bb1bce
cve-update-db-native: clean DB if temporary file exist

when do_populate_cve_db forced stop at certain point, the
DB execution are stoped however the temporary database
file (DB-JOURNAL) are not removed. This db-journal file
indicates that DB is incomplete and set DB in readonly
mode. So when db-journal exist, remove both DB and the
db-journal and build the DB again from scratch.

[YOCTO #13682]

Signed-off-by: Lee Chee Yang <chee.yang.lee@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/meta/cve-update-db-native.bb