ccp: add a component type layer to match critpath

This adds one more layer to the output dict, to match critpath
and allow for the possibility that we'll provide info on compose-
critical things that *aren't* packages in future (which would
make the script name a misnomer, but never mind).

Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
Adam Williamson 2026-07-22 16:59:14 -07:00
commit 3f58f4ab5a

View file

@ -247,6 +247,9 @@ def output(critpkgs, critsrc, prefixes, source):
iscount = len(critsrc[variant][arch]["image"])
print(f"Arch: {arch} - buildroot source {brscount}, image source {iscount}")
print(f"Total: {len(allcrit)}")
# wrap in component type
critpkgs = {"rpm": critpkgs}
critsrc = {"rpm": critsrc}
if source:
print(f"Source total: {len(allscrit)}")
for prefix in prefixes: