Make core loader use swh.loader.core.nar module
And not depend on the nix binary. This also: - allow the nar class to compute multiple hashes at the same time (only sha1, sha256) - drops the no longer used intermediary function nix_hashes to the benefit of that Nar class. Refs. swh/meta#4979
Showing
- swh/loader/core/loader.py 8 additions, 8 deletionsswh/loader/core/loader.py
- swh/loader/core/nar.py 31 additions, 12 deletionsswh/loader/core/nar.py
- swh/loader/core/tests/test_nar.py 6 additions, 8 deletionsswh/loader/core/tests/test_nar.py
- swh/loader/core/tests/test_utils.py 1 addition, 34 deletionsswh/loader/core/tests/test_utils.py
- swh/loader/core/utils.py 8 additions, 29 deletionsswh/loader/core/utils.py
- swh/loader/package/tests/test_utils.py 4 additions, 4 deletionsswh/loader/package/tests/test_utils.py
Loading
Please register or sign in to comment