openSUSE / libsolv

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

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

Open Hind-M opened 6 months ago

Hind-M commented 6 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 6 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.