allow json
format for rpm-ostree db diff --changelogs
#4924
Labels
area/client
Issues related to client-side operations (upgrades, karg changes, etc)
kind/enhancement
triaged
This issue was triaged
Describe the bug
This request is related to this downstream work:
https://gitlab.gnome.org/GNOME/gnome-software/-/merge_requests/1947
The gnome-software currently reads the
--format=block
changelogs and presents that to the user. Two things:block
format stable? That's because gnome-software expects certain format and parses it from the free text, thus when you change the format it'll break the code.Reproduction steps
run
rpm-ostree db diff --changelogs --format=json
Expected behavior
changelog exported in json format.
Actual behavior
The command currently returns error that json format is not supported for changelogs. There is a code to generate json format without changelogs already.
System details
not applicable, though using rpm-ostree-2024.4-5.fc40
Additional information
For example:
generates here (I skipped some lines for readability):
while
returns:
It would be nice to have the
Changelogs
beside the"PreviousPackage"
and"NewPackage"
, like:where the
date
is in seconds since epoch and in UTC, but it can be also asYYYY-MM-DD
, as it's a date only after all.The text was updated successfully, but these errors were encountered: