]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
cve-check: add lockfile to task
authorKonrad Weihmann <kweihmann@outlook.com>
Fri, 7 Jan 2022 09:48:51 +0000 (10:48 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 8 Jan 2022 14:17:31 +0000 (14:17 +0000)
commit677f5741bd265be49d4a5bb933b3e8d8c4eec653
tree3d98cb5f28dfce063414702166bd95527b8c489c
parentfb450807774d100b9b568364b014ac46f5642b7e
cve-check: add lockfile to task

this should prevent running into the very rare error
sqlite3.OperationalError: attempt to write a readonly database

As highlighted by https://www.sqlite.org/faq.html#q5
it is likely that the adapter won't allow use multiple exec calls
at the same time.

So it's best to prevent multiple accesses at a time, by reusing
the already in place CVE_CHECK_DB_FILE_LOCK

YOCTO #14110

Signed-off-by: Konrad Weihmann <kweihmann@outlook.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/cve-check.bbclass