Page MenuHomeSoftware Heritage

swh.loader.package:Add add method to download, uncompress tarball and create hash. Introduce hookpoints to cleanup artifact and extranct metadata
AbandonedPublic

Authored by ardumont on Aug 3 2019, 10:00 PM.

Details

Reviewers
nahimilega
Group Reviewers
Reviewers
Summary

Implement method to make a request to the tarball
url. The response is written in the folder,
uncompressed and checked for its integraty and
then hashes are computed

Introduce hookpoint cleanup_artifact() which
could be overridden to delete unnecessary binary
files from the downloaded tarball.

extract_metadata() method can be overridden to
parse over files present in downloaded pakage
version to obtain metadata. This metadata can be
added to the the existing metadata available for a
package version, which further will be used to
build revision.

Depends on D1810

Diff Detail

Repository
rDLDBASE Generic VCS/Package Loader
Branch
b3
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 7135
Build 10061: tox-on-jenkinsJenkins
Build 10060: arc lint + arc unit