flatpak / flat-manager

Manager for flatpak repositories
Apache License 2.0
178 stars 43 forks source link

flat-manager-client: check for all missing objects #128

Closed abderrahim closed 2 months ago

abderrahim commented 2 months ago

Previously, the code assumed that if a metadata object is available on the server all file objects it points to are also available, which is a reasonable assumption in general.

However, a misbehaving prune operation can leave a repository in such a state with missing file objects.

This change allows the repository to recover by uploading such missing files if they are needed for the currently uploaded commits.