File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
arduino-core/src/cc/arduino Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -80,10 +80,15 @@ public class Constants {
8080 String externalLibraryIndexUrl = System .getProperty ("LIBRARY_INDEX_URL" );
8181 if (externalLibraryIndexUrl != null && !"" .equals (externalLibraryIndexUrl )) {
8282 LIBRARY_INDEX_URL = externalLibraryIndexUrl ;
83+ LIBRARY_INDEX_URL_GZ = "" ;
84+ String externalLibraryIndexUrlGz = System .getProperty ("LIBRARY_INDEX_URL_GZ" );
85+ if (externalLibraryIndexUrlGz != null && !"" .equals (externalLibraryIndexUrlGz )) {
86+ LIBRARY_INDEX_URL_GZ = externalLibraryIndexUrlGz ;
87+ }
8388 } else {
8489 LIBRARY_INDEX_URL = "http://downloads.arduino.cc/libraries/library_index.json" ;
90+ LIBRARY_INDEX_URL_GZ = "http://downloads.arduino.cc/libraries/library_index.json.gz" ;
8591 }
86- LIBRARY_INDEX_URL_GZ = "http://downloads.arduino.cc/libraries/library_index.json.gz" ;
8792 }
8893
8994}
You can’t perform that action at this time.
0 commit comments