Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion tools/family_release.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@
published index lists it already
index DIR adds the members the index lacks to the mcpp-index
checkout DIR: the whole group as one change, the content
of its one index PR
of its one index PR; an entry that lists its rows
(`platform_rows`) has the list derived again by the
checkout's tools/platform_rows.py
visible DIR [--xim XDIR]
whether the copy of the index mcpp synced into DIR (the
path `mcpp index status` names) lists every member the
Expand Down Expand Up @@ -160,6 +162,12 @@ def index(members, checkout, review=False):
if n == 0:
sys.exit(f"{path}: no system table to add {version} to")
path.write_text(text, encoding="utf-8")
# A platform's entry lists the rows its newest version serves; the list is
# derived data the index's lint compares with the manifest, and the index
# owns the derivation (tools/platform_rows.py), so a new version rewrites it.
if "platform_rows" in text:
subprocess.run([sys.executable, "-I", "tools/platform_rows.py", "write", str(path.relative_to(checkout))],
cwd=checkout, check=True)
added.append(f"{name} {version}")
print("added: " + (", ".join(added) if added else "nothing, the index lists the group"))
return 0
Expand Down
Loading