File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -121,6 +121,9 @@ def manually_install_esp32_bsp(repo_info):
121
121
print ("Installed ESP32 BSP from source!" )
122
122
123
123
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" )
124
127
print ("Installing" , fqbn , end = " " )
125
128
if fqbn == "adafruit:avr" : # we have a platform dep
126
129
install_platform ("arduino:avr" , full_platform_name )
@@ -131,9 +134,6 @@ def install_platform(fqbn, full_platform_name=None):
131
134
if os .system ("arduino-cli core install " + fqbn + " --additional-urls " + BSP_URLS + " > /dev/null" ) == 0 :
132
135
break
133
136
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
-
137
137
time .sleep (10 ) # wait 10 seconds then try again?
138
138
else :
139
139
# tried 3 times to no avail
You can’t perform that action at this time.
0 commit comments