fix: refuse a missing platforms directory

This commit is contained in:
Abdessamad Derraz committed 2026-11-06 03:25:20 +01:00
1 parent 6445e5d7d6
commit 27991c84ba
8 files changed
+58 -2

No files matched your search

+2 -1
View File
@@ -33,7 +33,7 @@ from pathlib import Path
sys.path.insert(0, os.path.dirname(__file__))
from build_port import ARCHIVES
from check_release_assets import digests_of
from common import list_release_pack_platforms
from common import list_release_pack_platforms, require_directory
from largefiles import LARGE_FILES_REPO
from release_record import RECORD, load_record
@@ -208,6 +208,7 @@ def main() -> int:
)
parser.add_argument("--json", action="store_true", help="JSON output")
args = parser.parse_args()
require_directory(args.platforms_dir, "--platforms-dir")
record = load_record(args.record)
tag = args.tag or record.get("tag")