NodeLoader: Rename checksums_computation to checksum_layout
NodeLoader as in {Content|Directory}Loader. Those can directly ingest respectively a (remote) file (as Content) or a (remote) tarball artifact (as Directory). They are currently listed by the nixguix lister. Depending on the checksum_layout (standard, nar), they will compute checksums differently. With "standard" checksum layout, they are computing usual "swh" checksums (sha1, sha1_git, ...) and validate them. With "nar" checksum layout, they will compute the "nar" checksums and store those (once validated) as ExtID. This keeps the node loader construtor retro-compatible with the previous version. It still deals with `checksums_computation` as `checksum_layout` and falls back to "standard" layout when nothing is provided. Refs. swh/meta#4979
Showing
- swh/loader/core/loader.py 32 additions, 19 deletionsswh/loader/core/loader.py
- swh/loader/core/tests/test_loader.py 29 additions, 20 deletionsswh/loader/core/tests/test_loader.py
- swh/loader/core/tests/test_tasks.py 47 additions, 12 deletionsswh/loader/core/tests/test_tasks.py
- swh/loader/exception.py 3 additions, 3 deletionsswh/loader/exception.py
Loading
Please register or sign in to comment