Skip to content

Commit

Permalink
#4050 add sbom from 'jhbuild list -a -r' output
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed Jan 11, 2024
1 parent 7d5a480 commit dee6d5b
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions fs/bin/add_build_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,18 @@ def record_build_info() -> None:
pkg_name, version = parts
pkg_name = pkg_name.replace("-", "_")
set_prop(props, f"lib_{pkg_name}", version)
elif sys.platform == "darwin":
returncode, out, _ = get_status_output(["jhbuild", "list", "-a", "-r"])
if returncode == 0:
for line in out.decode().splitlines():
parts = line.split(" ")
if len(parts) != 2:
continue
pkg_name, version = parts
if pkg_name == "Modules":
return
pkg_name = pkg_name.replace("-", "_")
set_prop(props, f"lib_{pkg_name}", version.lstrip("(").rstrip(")"))
else:
for pkg in (
"libc",
Expand Down

0 comments on commit dee6d5b

Please sign in to comment.