Skip to content

Commit c4533cb

Browse files
authored
Include full name in SBOM files for PyManager uploads (#404)
1 parent 798b3a5 commit c4533cb

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

windows-release/merge-and-upload.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,8 +176,8 @@ def calculate_uploads():
176176
dest = url2path(i["url"])
177177
if LOCAL_INDEX:
178178
i["url"] = str(src.relative_to(Path.cwd())).replace("\\", "/")
179-
sbom = src.with_suffix(".spdx.json")
180-
sbom_dest = dest.rpartition("/")[0] + sbom.name
179+
sbom = src.with_name(f"{src.name}.spdx.json")
180+
sbom_dest = f"{dest}.spdx.json"
181181
if not sbom.is_file():
182182
sbom = None
183183
sbom_dest = None

0 commit comments

Comments
 (0)