feat: fallback for old immutable files
All checks were successful
build / build (push) Successful in 1m34s
build / trigger-build-image (push) Successful in 9s

This commit is contained in:
张泊明518370910136 2025-07-26 16:50:35 -07:00
parent eac9100146
commit e2d2ced3ae
GPG Key ID: D47306D7062CDA9D

View File

@ -96,8 +96,12 @@ def get_check_lists(repo_conf: repo.Config) -> Tuple[List[str], List[str]]:
for file in repo_conf.files.immutable: for file in repo_conf.files.immutable:
file_path = immutable_dir / Path(file).name file_path = immutable_dir / Path(file).name
if not file_path.exists(): if not file_path.exists():
file_path = immutable_dir / Path(file).name
logger.warning(f"Immutable file not found: {file_path}") logger.warning(f"Immutable file not found: {file_path}")
continue if not file_path.exists():
logger.warning(f"Immutable file not found: {file_path}")
logger.warning(f"Skipping {file}")
continue
immutable_files.append(file_path) immutable_files.append(file_path)
file_sums.append(calc_sha256sum(file_path)) file_sums.append(calc_sha256sum(file_path))
file_names.append(file) file_names.append(file)