Skip to content

Commit ff7d61a

Browse files
committed
try another way
1 parent c56cc8c commit ff7d61a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

build_platform.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,9 @@ def manually_install_esp32_bsp(repo_info):
121121
print("Installed ESP32 BSP from source!")
122122

123123
def install_platform(fqbn, full_platform_name=None):
124+
if os.path.exists("/home/runner/.arduino15/package_drazzy.json"):
125+
print("Moving drazzy.json")
126+
shutil.move("/home/runner/.arduino15/package_drazzy.json", "/home/runner/.arduino15/package_drazzy.com_index.json")
124127
print("Installing", fqbn, end=" ")
125128
if fqbn == "adafruit:avr": # we have a platform dep
126129
install_platform("arduino:avr", full_platform_name)
@@ -131,9 +134,6 @@ def install_platform(fqbn, full_platform_name=None):
131134
if os.system("arduino-cli core install "+fqbn+" --additional-urls "+BSP_URLS+" > /dev/null") == 0:
132135
break
133136
print("...retrying...", end=" ")
134-
if os.path.exists(".arduino15/package_drazzy.json"):
135-
shutil.move(".arduino15/package_drazzy.json", ".arduino15/package_drazzy.com_index.json")
136-
137137
time.sleep(10) # wait 10 seconds then try again?
138138
else:
139139
# tried 3 times to no avail

0 commit comments

Comments
 (0)