fix: refuse a platform list where one is taken

generate_pack split --platform on commas to validate it, then used
the whole string as one platform and crashed. Every script takes a
single platform; a list is refused with a message pointing at --all.
This commit is contained in:
Abdessamad Derraz committed 2026-10-18 02:50:58 +02:00
1 parent 1bdfb8d75e
commit 9ba63e6a54
3 files changed
+40 -2

No files matched your search

+1 -2
View File
@@ -2917,8 +2917,7 @@ def _main(held: contextlib.ExitStack) -> None:
args = parser.parse_args()
packresolve.set_offline(bool(args.offline))
if args.platform:
for name in args.platform.split(","):
require_platform(name.strip(), args.platforms_dir)
require_platform(args.platform, args.platforms_dir)
_refuse_unapplied_flags(args, parser)
if args.target: