31 lines
1.1 KiB
Python
31 lines
1.1 KiB
Python
#!/usr/bin/env python3
|
|
"""mcverify.py -- short entry point for the media-catalog claims check.
|
|
|
|
Exists only so the CHECK line stays under the Ralph log's 72-character wrap: it
|
|
runs `2026-10-22-media-catalog-verify/claims_check.py` unchanged, from any cwd,
|
|
and inherits its exit code (0 = every claim in REPORT.md still holds).
|
|
|
|
It names no path of its own: the catalog it grades comes from `--src` or
|
|
`$MEDIA_CATALOG_SRC`, and with neither it refuses rc 2 rather than guessing
|
|
whose host to read (Q69). The deployed path lives in `CHECK-media-catalog`
|
|
beside this file, which is a check entry point.
|
|
"""
|
|
|
|
import os
|
|
import runpy
|
|
import sys
|
|
|
|
TARGET = os.path.join(
|
|
os.path.dirname(os.path.abspath(__file__)),
|
|
"2026-10-22-media-catalog-verify",
|
|
"claims_check.py",
|
|
)
|
|
|
|
if __name__ == "__main__":
|
|
if not (any(a == "--src" or a.startswith("--src=") for a in sys.argv[1:])
|
|
or os.environ.get("MEDIA_CATALOG_SRC")):
|
|
print("could not grade: no source named -- pass --src PATH or set "
|
|
"MEDIA_CATALOG_SRC.")
|
|
sys.exit(2)
|
|
runpy.run_path(TARGET, run_name="__main__")
|