init
This commit is contained in:
+8
-4
@@ -66,10 +66,14 @@ def set_tree_root(root: Path) -> Path:
|
||||
def ensure_tree_layout(root: Path) -> None:
|
||||
camp = root / "web" / CAMPAIGN_HASH
|
||||
sync = root / "sync"
|
||||
if not camp.is_dir():
|
||||
raise SystemExit(f"missing campaign dir: {camp}")
|
||||
if not sync.is_dir():
|
||||
raise SystemExit(f"missing sync dir: {sync}")
|
||||
if not camp.is_dir() or not sync.is_dir():
|
||||
raise SystemExit(
|
||||
f"missing working tree under {root} (need web/{CAMPAIGN_HASH}/ and sync/).\n"
|
||||
f"Run first:\n"
|
||||
f" python3 tools/new_project.py --skip-patch\n"
|
||||
f"or directly:\n"
|
||||
f" python3 tools/new_project.py --deployment-domains '...' --reporting-domains '...'"
|
||||
)
|
||||
|
||||
|
||||
def pack_seed(value: str) -> bytes:
|
||||
|
||||
Reference in New Issue
Block a user