File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -490,7 +490,7 @@ def test_release_artifacts(db: DbfilenameShelf) -> None:
490490
491491def build_sbom_artifacts (db ):
492492
493- # Skip building an SBOM if there isn't an 'Misc/sbom.spdx.json' file.
493+ # Skip building an SBOM if there isn't a 'Misc/sbom.spdx.json' file.
494494 if not (db ["git_repo" ] / "Misc/sbom.spdx.json" ).exists ():
495495 print ("Skipping building an SBOM, missing 'Misc/sbom.spdx.json'" )
496496 return
Original file line number Diff line number Diff line change @@ -293,10 +293,10 @@ def create_sbom_for_source_tarball(tarball_path: str):
293293 return sbom
294294
295295
296- if __name__ == "__main__" :
296+ def main () -> None :
297297 tarball_path = sys .argv [1 ]
298- print (
299- json .dumps (
300- create_sbom_for_source_tarball ( tarball_path ), indent = 2 , sort_keys = True
301- )
302- )
298+ sbom_data = create_sbom_for_source_tarball ( tarball_path )
299+ print ( json .dumps (sbom_data , indent = 2 , sort_keys = True ))
300+
301+ if __name__ == "__main__" :
302+ main ( )
You can’t perform that action at this time.
0 commit comments