summaryrefslogtreecommitdiffstats
path: root/meta
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-20 15:32:27 +0000
commit43544c00e9c5de2bbe41a0592a83e2e217367f16 (patch)
tree6aac88009756d451b0a667a2c127dd15bd622ef3 /meta
parente72bb493670fcb76000d0d8efe657360b194b134 (diff)
downloadpoky-43544c00e9c5de2bbe41a0592a83e2e217367f16.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: 113b21fd3edc599c280f34875ca1477606424eec) 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: Anuj Mittal <anuj.mittal@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-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 3add826fca..a95e810605 100644
--- a/meta/classes/cve-check.bbclass
+++ b/meta/classes/cve-check.bbclass
@@ -143,6 +143,7 @@ python cve_check_write_rootfs_manifest () {
143 manifest_name = d.getVar("CVE_CHECK_MANIFEST") 143 manifest_name = d.getVar("CVE_CHECK_MANIFEST")
144 cve_tmp_file = d.getVar("CVE_CHECK_TMP_FILE") 144 cve_tmp_file = d.getVar("CVE_CHECK_TMP_FILE")
145 145
146 bb.utils.mkdirhier(os.path.dirname(manifest_name))
146 shutil.copyfile(cve_tmp_file, manifest_name) 147 shutil.copyfile(cve_tmp_file, manifest_name)
147 148
148 if manifest_name and os.path.exists(manifest_name): 149 if manifest_name and os.path.exists(manifest_name):