Skip to content
Snippets Groups Projects
Verified Commit 556273ca authored by Antoine R. Dumont's avatar Antoine R. Dumont
Browse files

private/deposit_checks: Adapt reading tarballs using the File api

Using the File api is consistent across various storage backends. The previous
implementation was only working for file storage. As we are migrating towards remote
backends, this no longer is enough.

Unfortunately though, we cannot rely on zipfile.is_zipfile or tarfile.is_tarfile as
those only works with local filepath. So we need to rely on testing & failing with
exception trapping to read properly the tarballs...

Refs. swh/infra/sysadm-environment#5129
parent 53c5765d
No related branches found
No related tags found
1 merge request!419settings.production: Allow the use of azure backend if defined
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment