mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-03 08:33:46 -06:00
fix: say why the plan's numbers differ
This commit is contained in:
1 parent
7e96e12a4f
commit
381ec6de69
2 files changed
+21
-2
No files matched your search
+8
-2
@@ -12044,8 +12044,14 @@ def _plan_lines(check: dict, dest: Path | None, state: TuiState) -> list:
|
||||
]
|
||||
if state.facts.get("writable") is False:
|
||||
lines.append("You cannot write to this folder: choose another one.")
|
||||
lines.append(f"{check['present']} in place, {check['missing']} missing, "
|
||||
f"{wrong} wrong {'copy' if wrong == 1 else 'copies'}")
|
||||
counts = (f"{check['present']} in place, {check['missing']} missing, "
|
||||
f"{wrong} wrong {'copy' if wrong == 1 else 'copies'}")
|
||||
if copied and fetch:
|
||||
# 47 to download above 49 missing and 1 wrong copy: the 3 found on
|
||||
# this machine are the difference, said where the sum is read.
|
||||
counts += (f": {len(copied)} of them {'is' if len(copied) == 1 else 'are'} "
|
||||
f"copied from this machine, {fetch} downloaded")
|
||||
lines.append(counts)
|
||||
saves = (state.saves if check is state.check
|
||||
else state.dry_saves if check is state.dry else None)
|
||||
lines += [_styled(line, "path") for line in _saves_lines(state, saves)]
|
||||
|
||||
Reference in new issue
Block a user