refactor: one predicate for the pack notes

This commit is contained in:
Abdessamad Derraz committed 2026-11-21 19:50:33 +01:00
1 parent 66c83b06b0
commit cf7e13808f
7 files changed
+30 -32

No files matched your search

-9
View File
@@ -3,18 +3,9 @@
from __future__ import annotations
import os
import re
from core.paths import EMULATORS_DIR
from model.registry import load_data_dir_registry
from packs.paths import MEDIA_MARKER
# Members the builder writes for the reader or the device rather than for a
# core: the documents, and the empty marker an Android pack carries.
PACK_NOTES = re.compile(
r"(^README\.txt$|^manifest\.json$|(^|/)(INSTRUCTIONS|RENAMED)_[^/]*\.txt$"
rf"|(^|/){re.escape(MEDIA_MARKER)}$)"
)
def tree_members(