refactor: fold destinations with one rule

comparable_destination moves to core.paths. Placed, placement_block,
the shared group merge of model.platforms and LauncherPlace.fold read it
in place of their own lower(). It also trims surrounding blanks and
slashes and folds with casefold: no destination, collection path or
launcher name differs under those rules today, so the output is the
same.
This commit is contained in:
Abdessamad Derraz committed 2026-11-20 20:03:26 +01:00
1 parent ca3ff1d4c5
commit 1c978f3083
7 files changed
+27 -23

No files matched your search

+2 -1
View File
@@ -10,7 +10,8 @@ from core.hashing import parse_md5_list
from model.profiles import entry_system_ids, lists_files
from resolve import nativemode
from resolve.archives import archive_entry, holds_required_members
from resolve.collisions import accepted_by_all, content_sha1, lists_hashes, comparable_destination
from core.paths import comparable_destination
from resolve.collisions import accepted_by_all, content_sha1, lists_hashes
from resolve.cores import resolve_platform_cores
from resolve.layout import system_dir_path
from resolve.localfile import resolution_is_hash_exact, resolve_local_file