Compare commits

..

2 Commits

Author SHA1 Message Date
39f01b266f fix(archive): skip categories with zero or unset days config
All checks were successful
Auto Changelog & (Release) / release (push) Successful in 6s
Build and Publish nightly package / build-and-publish (push) Successful in 31s
2025-11-27 19:57:43 +01:00
31c3f7d438 feat(archive): enable multithreaded zstd compression 2025-11-27 19:57:43 +01:00

View File

@@ -28,7 +28,7 @@ def archive_repo(source: Path, target_dir: Path, dry_run: bool) -> Path:
return archive_path
with open(archive_path, "wb") as f:
cctx = zstandard.ZstdCompressor(level=20)
cctx = zstandard.ZstdCompressor(level=20, threads=-1)
with cctx.stream_writer(f) as compressor:
with tarfile.open(fileobj=compressor, mode="w|") as tar:
tar.add(source, arcname=source.name)
@@ -70,6 +70,9 @@ def run(
if category and cat.config.name not in category:
continue
if cat.config.days == 0 or cat.config.days is None:
continue
limit_days = cat.config.days if cat.config.days is not None else older_than
for repo in cat.repos: