Retire legacy SOT compatibility route
This commit is contained in:
parent
03c87d437b
commit
c309b41e0c
@ -3,7 +3,6 @@
|
|||||||
|
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
import os
|
|
||||||
import re
|
import re
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
||||||
@ -29,10 +28,8 @@ def main() -> int:
|
|||||||
if not (ROOT / ".sot").is_dir():
|
if not (ROOT / ".sot").is_dir():
|
||||||
fail("missing canonical .sot directory")
|
fail("missing canonical .sot directory")
|
||||||
legacy = ROOT / "sot"
|
legacy = ROOT / "sot"
|
||||||
if not legacy.is_symlink():
|
if legacy.exists() or legacy.is_symlink():
|
||||||
fail("legacy sot path must be a temporary symlink")
|
fail("legacy sot path must be absent after compatibility retirement")
|
||||||
if os.readlink(legacy) != ".sot":
|
|
||||||
fail("legacy sot symlink must target .sot")
|
|
||||||
|
|
||||||
for relative in REQUIRED_FILES:
|
for relative in REQUIRED_FILES:
|
||||||
if not (ROOT / relative).is_file():
|
if not (ROOT / relative).is_file():
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user