Skip to content
Snippets Groups Projects
Commit 83c7c7a7 authored by Davide Gardenal's avatar Davide Gardenal Committed by Andrei Gherzan
Browse files

cve-check: backport of fix for FileNotFoundError raise

Original upstream commit:
https://git.openembedded.org/openembedded-core/commit/?id=9829c16301bf2dce39fa046401a984f112fa0322



Add directory creation to be sure the destination directory exists
before performing the file copy.
FileNotFoundError occurs when running CI, caused by the fact that
the destination directory doen't exists.

Signed-off-by: Davide Gardenal's avatarDavide Gardenal <davide.gardenal@huawei.com>
parent c583c40e
No related branches found
No related tags found
No related merge requests found
......@@ -148,6 +148,7 @@ python cve_check_write_rootfs_manifest () {
manifest_name = d.getVar("CVE_CHECK_MANIFEST")
cve_tmp_file = d.getVar("CVE_CHECK_TMP_FILE")
bb.utils.mkdirhier(os.path.dirname(manifest_name))
shutil.copyfile(cve_tmp_file, manifest_name)
if manifest_name and os.path.exists(manifest_name):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment