mirror of
https://github.com/flatpak/flatpak.git
synced 2026-01-24 15:48:18 -05:00
The OCI support relies on downloading a json index and converting it to a ostree-style summary, which we the use in all sorts of operations in the client code. Currently this happens in the user code, which means that it will fail (due to permissions) in the system installation case. We could do the conversion as the user, but when eventually installing something the system-helper will anyway do this download and conversion, so that would only double the work and risk things going out of sync. Also, the OCI index is not gpg signed, so we can't realy on downloads done as the user. So, the solution done here is to add a GenerateOciSummary system-helper call which we use instead of directly generating the oci summary. This fixes https://github.com/flatpak/flatpak/issues/2350 Closes: #2363 Approved by: matthiasclasen