HomeSoftware Heritage

package/loader: Handle tarball download erroneously marked as gzipped

Description

package/loader: Handle tarball download erroneously marked as gzipped

It exists cases where a tarball to dowload is marked as gzipped in the
Content-Encoding HTTP response header while in fact it is not.

So handle ContentDecodingError exception that can be raised by the
dowload method: try to download tarball raw bytes again without
attempting to uncompress the input stream.

Details

Provenance
anlambertAuthored on Jun 10 2021, 3:16 PM
anlambertPushed on Jun 10 2021, 4:13 PM
Differential Revision
D5852: package.loader: Handle tarball download erroneously marked as gzipped
Parents
rDLDBASE644134a86d3a: mypy: Fix errors with release >= v0.900
Branches
Unknown
Tags
Unknown
References
tag: v0.22.2
Build Status
Buildable 21915
Build 34081: test-and-buildJenkins console · Jenkins