mirror of
https://github.com/flatpak/flatpak.git
synced 2026-01-27 09:08:12 -05:00
This system-helper method will allow flatpak to update the ostree repo summary while running as a non-root user that's in the "sudo" group. This will allow the `flatpak create-usb` command to work without requiring the user to first run `sudo ostree summary -u`, and without requiring the system to have `core.auto-update-summary` set to true in the ostree repo config. This is also much more efficient than `core.auto-update-summary` because it allows us to only update the summary when we need it rather than after every transaction. Generating the summary basically just involves traversing the repo to enumerate all the refs and putting this information into a file, so I don't think there are security concerns with allowing it to happen without authentication. Closes: #1945 Approved by: alexlarsson