When --json is passed to fedmod resolve-deps, return output in JSON form that contains, for each package
The NVR of the package
The NVR of the corresponding source package
The package in the transaction that satisfied each requirement
This is intended to allow other tools to provide higher-level reporting or analysis while sharing the underlying data sources and dependency-reporting logic of fedmod.
In particular, I'm using this for tooling to create module contents based based on the contents of the "upstream" flatpak runtimes. Example report
I haven't updated tests or docs in this PR yet - wanted to get feedback before I went ahead and did that.
The original attempt at this produced output like:
Where every dependency is a single element list. The second patch in this PR reduces accuracy for simplicity and just picks one in the rare case when multiple packages in the transaction provide a dependency. I think this is an OK tradeoff, but the lists could be left if desired.
When
--jsonis passed tofedmod resolve-deps, return output in JSON form that contains, for each packageThis is intended to allow other tools to provide higher-level reporting or analysis while sharing the underlying data sources and dependency-reporting logic of fedmod.
In particular, I'm using this for tooling to create module contents based based on the contents of the "upstream" flatpak runtimes. Example report
I haven't updated tests or docs in this PR yet - wanted to get feedback before I went ahead and did that.
The original attempt at this produced output like:
Where every dependency is a single element list. The second patch in this PR reduces accuracy for simplicity and just picks one in the rare case when multiple packages in the transaction provide a dependency. I think this is an OK tradeoff, but the lists could be left if desired.