]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
create-spdx-2.2: combine spdx can try to write before dir creation
authorJeremy A. Puhlman <jpuhlman@mvista.com>
Fri, 15 Dec 2023 17:10:46 +0000 (09:10 -0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 17 Dec 2023 19:04:40 +0000 (19:04 +0000)
commitbb9f2a9c0ff5dcdeaf1a0beb6a614d0d022a2481
tree2ad3fb035bc26e28a5c46ea27e623402f43c289d
parent5265dd0b102cd7f3c6bb2ae1b18e9f625b834b39
create-spdx-2.2: combine spdx can try to write before dir creation

On occasion a file is attmpeded to be opened prior to the
creation of the spdx_workdir. Create the directory before
the open, just in case.

File: '/build/layers/poky/meta/classes/create-spdx-2.2.bbclass', lineno: 1081, function: combine_spdx
     1077:        )
     1078:
     1079:    image_spdx_path = spdx_workdir / (rootfs_name + ".spdx.json")
     1080:
 *** 1081:    with image_spdx_path.open("wb") as f:
     1082:        doc.to_json(f, sort_keys=True, indent=get_json_indent(d))

Signed-off-by: Jeremy A. Puhlman <jpuhlman@mvista.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/create-spdx-2.2.bbclass