fix: bound data directory zip extraction

The refresh fetched, filtered and extracted in one function and copied
ZIP members with no size, ratio or duplicate path check. Extraction now
lives in packs/datadirextract.py as local functions, the ZIP side on
safe_extract_zip, which gains a member select hook and returns the file
count. Tests read the member rules on local archives.
This commit is contained in:
Abdessamad Derraz committed 2026-11-22 00:58:05 +01:00
1 parent 0d44254504
commit 357153eaa3
6 files changed
+222 -118

No files matched your search

+1
View File
@@ -76,6 +76,7 @@ on:
- "scripts/packs/archive.py"
- "scripts/packs/coverage.py"
- "scripts/packs/crossref.py"
- "scripts/packs/datadirextract.py"
- "scripts/packs/datadirs.py"
- "scripts/packs/extras.py"
- "scripts/packs/gaps.py"