Skip to content

Commit

Permalink
extensions: include release and arch in extensions.json
Browse files Browse the repository at this point in the history
`%{version}` just prints the version field, but we want the epoch,
release, and arch too. This matches what we previously would output
before moving extensions building to a container.

There is code that will parse this metadata assuming that it's an EVRA:

https://github.com/openshift-eng/art-tools/blob/6a29949b2b2819afe00829646e6c7db9b784ff8a/doozer/doozerlib/rhcos.py#L248
  • Loading branch information
jlebon committed Feb 4, 2025
1 parent 017ceaf commit 51e149d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extensions/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ RUN createrepo_c /usr/share/rpm-ostree/extensions/
RUN sh -c 'echo "{" > /tmp/extensions.json && \
dnf repoquery --repofrompath=extensions,/usr/share/rpm-ostree/extensions/ \
--quiet --disablerepo=* --enablerepo=extensions \
--queryformat "\"%{name}\": \"%{version}\"," | \
--queryformat "\"%{name}\": \"%{evr}.%{arch}\"," | \
sed "$ s/,$//" >> /tmp/extensions.json && \
echo "}" >> /tmp/extensions.json'

Expand Down

0 comments on commit 51e149d

Please sign in to comment.