try another way
This commit is contained in:
parent
c56cc8c005
commit
ff7d61a290
1 changed files with 3 additions and 3 deletions
|
|
@ -121,6 +121,9 @@ def manually_install_esp32_bsp(repo_info):
|
|||
print("Installed ESP32 BSP from source!")
|
||||
|
||||
def install_platform(fqbn, full_platform_name=None):
|
||||
if os.path.exists("/home/runner/.arduino15/package_drazzy.json"):
|
||||
print("Moving drazzy.json")
|
||||
shutil.move("/home/runner/.arduino15/package_drazzy.json", "/home/runner/.arduino15/package_drazzy.com_index.json")
|
||||
print("Installing", fqbn, end=" ")
|
||||
if fqbn == "adafruit:avr": # we have a platform dep
|
||||
install_platform("arduino:avr", full_platform_name)
|
||||
|
|
@ -131,9 +134,6 @@ def install_platform(fqbn, full_platform_name=None):
|
|||
if os.system("arduino-cli core install "+fqbn+" --additional-urls "+BSP_URLS+" > /dev/null") == 0:
|
||||
break
|
||||
print("...retrying...", end=" ")
|
||||
if os.path.exists(".arduino15/package_drazzy.json"):
|
||||
shutil.move(".arduino15/package_drazzy.json", ".arduino15/package_drazzy.com_index.json")
|
||||
|
||||
time.sleep(10) # wait 10 seconds then try again?
|
||||
else:
|
||||
# tried 3 times to no avail
|
||||
|
|
|
|||
Loading…
Reference in a new issue