]> code.ossystems Code Review - openembedded-core.git/commit
cve-update-db-native: clean DB if temporary file exist
authorLee Chee Yang <chee.yang.lee@intel.com>
Fri, 1 May 2020 21:59:17 +0000 (00:59 +0300)
committerAnuj Mittal <anuj.mittal@intel.com>
Tue, 5 May 2020 00:26:51 +0000 (08:26 +0800)
commit3f3bdb014cb6d87ee2e22db3c76b99ca6085787a
tree95438351c962422e045f9823f726e99581199fab
parent63c7f76912f097cdfb95296778c42887b7336925
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]

(From OE-Core rev: 70713df25b8ae27a21e53b0b9234567d7053800a)

Signed-off-by: Lee Chee Yang <chee.yang.lee@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
meta/recipes-core/meta/cve-update-db-native.bb