@@ -44,10 +44,10 @@ def supported_targets(yaml_path: pathlib.Path):
4444 targets = set ()
4545
4646 for target , settings in get_targets (yaml_path ).items ():
47- for platform in settings ["host_platforms" ]:
48- if sys .platform == "linux" and platform == "linux64" :
47+ for host_platform in settings ["host_platforms" ]:
48+ if sys .platform == "linux" and host_platform == "linux64" :
4949 targets .add (target )
50- elif sys .platform == "darwin" and platform == "macos" :
50+ elif sys .platform == "darwin" and host_platform == "macos" :
5151 targets .add (target )
5252
5353 return targets
@@ -305,9 +305,7 @@ def download_entry(key: str, dest_path: pathlib.Path, local_name=None) -> pathli
305305 assert isinstance (size , int )
306306 assert isinstance (sha256 , str )
307307
308- local_name = local_name or url [url .rindex ("/" ) + 1 :]
309-
310- local_path = dest_path / local_name
308+ local_path = dest_path / (local_name or url [url .rindex ("/" ) + 1 :])
311309 download_to_path (url , local_path , size , sha256 )
312310
313311 return local_path
@@ -466,7 +464,7 @@ def add_licenses_to_extension_entry(entry):
466464 if "path_static" in link or "path_dynamic" in link :
467465 have_local_link = True
468466
469- for key , value in DOWNLOADS .items ():
467+ for value in DOWNLOADS .values ():
470468 if name not in value .get ("library_names" , []):
471469 continue
472470
0 commit comments