]> code.ossystems Code Review - openembedded-core.git/commitdiff
cve-check: create directory of CVE_CHECK_MANIFEST before copy
authorStefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com>
Wed, 2 Feb 2022 07:35:23 +0000 (08:35 +0100)
committerSteve Sakoman <steve@sakoman.com>
Sat, 19 Feb 2022 19:59:34 +0000 (09:59 -1000)
Create directory of the CVE_CHECK_MANIFEST variable before copy to it,
so that the variable can use an arbitrary directory name.

Signed-off-by: Stefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 9829c16301bf2dce39fa046401a984f112fa0322)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/classes/cve-check.bbclass

index 6eecbdbf13bce7713fdf64671a3fc7d87b368fc2..6b627464a0c0e1cc7b0b05a6f1ca29fd734df3b7 100644 (file)
@@ -143,6 +143,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):