Skip to content
Commit 1b90a9c9 authored by Jeremy A. Puhlman's avatar Jeremy A. Puhlman Committed by Steve Sakoman
Browse files

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: default avatarJeremy A. Puhlman <jpuhlman@mvista.com>
Signed-off-by: default avatarRichard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit bb9f2a9c)
Signed-off-by: default avatarSteve Sakoman <steve@sakoman.com>
parent 91192e86
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment