File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ import (
25
25
26
26
"go.bug.st/downloader"
27
27
28
+ "github.com/arduino/arduino-cli/arduino/cores/packageindex"
28
29
"github.com/arduino/arduino-cli/commands"
29
30
"github.com/arduino/arduino-cli/common/formatter"
30
31
"github.com/arduino/arduino-cli/configs"
@@ -84,6 +85,11 @@ func updateIndex(URL *url.URL) {
84
85
os .Exit (commands .ErrNetwork )
85
86
}
86
87
88
+ if _ , err := packageindex .LoadIndex (tmp ); err != nil {
89
+ formatter .PrintError (err , "Invalid package index in " + URL .String ())
90
+ os .Exit (commands .ErrGeneric )
91
+ }
92
+
87
93
if err := indexDirPath .MkdirAll (); err != nil {
88
94
formatter .PrintError (err , "Can't create data directory " + indexDirPath .String ())
89
95
os .Exit (commands .ErrGeneric )
You can’t perform that action at this time.
0 commit comments