openSUSE / libsolv

Library for solving packages and reading repositories
http://en.opensuse.org/openSUSE:Libzypp_satsolver
Other
509 stars 151 forks source link

Add support for parsing `repodata.json` file with `repodata_version` 2 #562

Open Hind-M opened 2 months ago

Hind-M commented 2 months ago

Hi there, Thanks for the great work! There is this new CEP that landed with repodata_version 2, and it would be really cool if libsolv supports it to handle base_url. I can also give it a try and open a PR if you want :) Thanks!

mlschroe commented 2 months ago

I think the easiest way to implement this is to set the SOLVABLE_MEDIABASE property to the base_url if it is present.