mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-12 04:53:52 -06:00
fix: type errors the merged batches brought
The name step reused one variable for paths and for (path, md5, size) tuples, the standalone copies reused targets inside its own loop, and the WSL state read as object. Ten baseline entries no longer occur.
This commit is contained in:
1 parent
16f8c869a5
commit
6cc646acd6
7 files changed
+26
-36
No files matched your search
@@ -4065,16 +4065,16 @@ def _profile_copies(
|
||||
continue
|
||||
source = held[0]
|
||||
where = PurePosixPath(standalone)
|
||||
targets: dict[str, list[str]] = {}
|
||||
placed: dict[str, list[str]] = {}
|
||||
for system, root in roots.items():
|
||||
sep = "\\" if system == "windows" else "/"
|
||||
target = root if str(where.parent) == "." else (
|
||||
root + sep + str(where.parent).replace("/", sep))
|
||||
if not covered(system, target, where.name):
|
||||
targets[system] = [target]
|
||||
if not targets:
|
||||
placed[system] = [target]
|
||||
if not placed:
|
||||
continue
|
||||
copy = {"file": source, "targets": targets}
|
||||
copy = {"file": source, "targets": placed}
|
||||
if where.name != PurePosixPath(source).name:
|
||||
copy["as"] = where.name
|
||||
copies.append(copy)
|
||||
|
||||
Reference in new issue
Block a user