|
77 | 77 | from easybuild.tools.config import build_option, build_path, get_log_filename, get_repository, get_repositorypath |
78 | 78 | from easybuild.tools.config import install_path, log_path, package_path, source_paths |
79 | 79 | from easybuild.tools.environment import restore_env, sanitize_env |
80 | | -from easybuild.tools.filetools import CHECKSUM_TYPE_MD5, CHECKSUM_TYPE_SHA256 |
| 80 | +from easybuild.tools.filetools import CHECKSUM_TYPE_SHA256 |
81 | 81 | from easybuild.tools.filetools import adjust_permissions, apply_patch, back_up_file, change_dir, check_lock |
82 | 82 | from easybuild.tools.filetools import compute_checksum, convert_name, copy_file, create_lock, create_patch_info |
83 | 83 | from easybuild.tools.filetools import derive_alt_pypi_url, diff_files, dir_contains_files, download_file |
@@ -666,8 +666,7 @@ def collect_exts_file_info(self, fetch_files=True, verify_checksums=True): |
666 | 666 | src_path = ext_src['src'] |
667 | 667 | src_fn = os.path.basename(src_path) |
668 | 668 |
|
669 | | - # report both MD5 and SHA256 checksums, since both are valid default checksum types |
670 | | - for checksum_type in (CHECKSUM_TYPE_MD5, CHECKSUM_TYPE_SHA256): |
| 669 | + for checksum_type in [CHECKSUM_TYPE_SHA256]: |
671 | 670 | src_checksum = compute_checksum(src_path, checksum_type=checksum_type) |
672 | 671 | self.log.info("%s checksum for %s: %s", checksum_type, src_path, src_checksum) |
673 | 672 |
|
@@ -695,9 +694,7 @@ def collect_exts_file_info(self, fetch_files=True, verify_checksums=True): |
695 | 694 | if verify_checksums: |
696 | 695 | for patch in ext_patches: |
697 | 696 | patch = patch['path'] |
698 | | - # report both MD5 and SHA256 checksums, |
699 | | - # since both are valid default checksum types |
700 | | - for checksum_type in (CHECKSUM_TYPE_MD5, CHECKSUM_TYPE_SHA256): |
| 697 | + for checksum_type in [CHECKSUM_TYPE_SHA256]: |
701 | 698 | checksum = compute_checksum(patch, checksum_type=checksum_type) |
702 | 699 | self.log.info("%s checksum for %s: %s", checksum_type, patch, checksum) |
703 | 700 |
|
@@ -2410,8 +2407,7 @@ def fetch_step(self, skip_checksums=False): |
2410 | 2407 | # compute checksums for all source and patch files |
2411 | 2408 | if not (skip_checksums or self.dry_run): |
2412 | 2409 | for fil in self.src + self.patches: |
2413 | | - # report both MD5 and SHA256 checksums, since both are valid default checksum types |
2414 | | - for checksum_type in [CHECKSUM_TYPE_MD5, CHECKSUM_TYPE_SHA256]: |
| 2410 | + for checksum_type in [CHECKSUM_TYPE_SHA256]: |
2415 | 2411 | fil[checksum_type] = compute_checksum(fil['path'], checksum_type=checksum_type) |
2416 | 2412 | self.log.info("%s checksum for %s: %s", checksum_type, fil['path'], fil[checksum_type]) |
2417 | 2413 |
|
|
0 commit comments