Replace all URLs in platformio.ini with their resolved local paths.
(
pio_ini: PlatformIOIni,
all_urls: list[ZipUrlInfo],
replacements: dict[str, str],
)
| 976 | |
| 977 | |
| 978 | def _replace_all_urls( |
| 979 | pio_ini: PlatformIOIni, |
| 980 | all_urls: list[ZipUrlInfo], |
| 981 | replacements: dict[str, str], |
| 982 | ) -> None: |
| 983 | """ |
| 984 | Replace all URLs in platformio.ini with their resolved local paths. |
| 985 | """ |
| 986 | for url_info in all_urls: |
| 987 | if url_info.url in replacements: |
| 988 | pio_ini.replace_url( |
| 989 | url_info.section_name, |
| 990 | url_info.option_name, |
| 991 | url_info.url, |
| 992 | replacements[url_info.url], |
| 993 | ) |
| 994 | |
| 995 | |
| 996 | def _apply_board_specific_config( |
no test coverage detected