Skip to content

Play your own Switch games on iPhone/iPad — one-click macOS app, no terminal. | 把 Switch 游戏装进 iPhone:图形界面一键构建,不用命令行。Bring your own game.

The carrier tables have to agree, and now say so at import

LNPANDYb11141ff07f3
diff --git a/scripts/sync_upstream.py b/scripts/sync_upstream.py
index 681a8c4d..5f32a44b 100644
--- a/scripts/sync_upstream.py
+++ b/scripts/sync_upstream.py
@@ -1167,6 +1167,16 @@ PATCHERS = {
'docs/env_switches.tsv': patch_env_switches,
}
+# PATCHED, MARKERS and PATCHERS are three views of one set and have to agree, or a carrier works
+# while something else refuses to let it through. v0lumehi hit exactly that (PR #59): front_mac.m,
+# patch_nso.py and Hades II's game.tsv had patchers and markers but were missing from PATCHED, so
+# pr-scope refused the PR that carried them. Checked here rather than remembered.
+assert set(PATCHED) == set(MARKERS) == set(PATCHERS), (
+ 'the carrier tables disagree: PATCHED-only %s, MARKERS-only %s, PATCHERS-only %s' % (
+ sorted(set(PATCHED) - set(MARKERS) | set(PATCHED) - set(PATCHERS)),
+ sorted(set(MARKERS) - set(PATCHED) | set(MARKERS) - set(PATCHERS)),
+ sorted(set(PATCHERS) - set(PATCHED) | set(PATCHERS) - set(MARKERS))))
+
report, problems = [], []
class SyncProblem(Exception): pass
def say(s): report.append(s); print(s, flush=True)