Skip to content

Commit

Permalink
external: provide package versions
Browse files Browse the repository at this point in the history
Provide a map keyed by package name of the depsolve result that can be
used by omnifests to look up package information.

Signed-off-by: Simon de Vlieger <supakeen@redhat.com>
  • Loading branch information
supakeen committed Sep 17, 2024
1 parent bfe5311 commit af3879f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/otk_external_osbuild/command/gen_depsolve_dnf4.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,14 @@ def transform(packages):
# other externals.
data["tree"]["const"]["internal"]["packages"] = packages

# We also store all resolved packages and some meta information about
# them, this just turns the list into a more user-friendly accessible
# map keyed by package name.
data["tree"]["const"]["versions"] = {}

for package in packages:
data["tree"]["const"]["versions"][package["name"]] = package

return data


Expand Down

0 comments on commit af3879f

Please sign in to comment.