summaryrefslogtreecommitdiffstats
path: root/meta/classes/cve-check.bbclass
diff options
context:
space:
mode:
authorStefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com>2022-02-02 08:35:23 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-02-07 10:08:59 +0000
commit272212c2cb29ddd4c2591b8a7d3adc23c16cf207 (patch)
treec562442b30ee419eecef11e4b746a45fc1a750ad /meta/classes/cve-check.bbclass
parentbef3fe496969e79c8c44d3b1c41f60273a182104 (diff)
downloadpoky-272212c2cb29ddd4c2591b8a7d3adc23c16cf207.tar.gz
cve-check: create directory of CVE_CHECK_MANIFEST before copy
Create directory of the CVE_CHECK_MANIFEST variable before copy to it, so that the variable can use an arbitrary directory name. (From OE-Core rev: 9829c16301bf2dce39fa046401a984f112fa0322) Signed-off-by: Stefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/cve-check.bbclass')
-rw-r--r--meta/classes/cve-check.bbclass1
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/classes/cve-check.bbclass b/meta/classes/cve-check.bbclass
index 6c04ff9f09..21d3da7974 100644
--- a/meta/classes/cve-check.bbclass
+++ b/meta/classes/cve-check.bbclass
@@ -144,6 +144,7 @@ python cve_check_write_rootfs_manifest () {
144 manifest_name = d.getVar("CVE_CHECK_MANIFEST") 144 manifest_name = d.getVar("CVE_CHECK_MANIFEST")
145 cve_tmp_file = d.getVar("CVE_CHECK_TMP_FILE") 145 cve_tmp_file = d.getVar("CVE_CHECK_TMP_FILE")
146 146
147 bb.utils.mkdirhier(os.path.dirname(manifest_name))
147 shutil.copyfile(cve_tmp_file, manifest_name) 148 shutil.copyfile(cve_tmp_file, manifest_name)
148 149
149 if manifest_name and os.path.exists(manifest_name): 150 if manifest_name and os.path.exists(manifest_name):