diff options
author | Stefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com> | 2022-02-02 08:35:23 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-02-07 10:08:59 +0000 |
commit | 272212c2cb29ddd4c2591b8a7d3adc23c16cf207 (patch) | |
tree | c562442b30ee419eecef11e4b746a45fc1a750ad /meta/classes | |
parent | bef3fe496969e79c8c44d3b1c41f60273a182104 (diff) | |
download | poky-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')
-rw-r--r-- | meta/classes/cve-check.bbclass | 1 |
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): |