File tree 1 file changed +6
-2
lines changed
arduino-core/src/cc/arduino/contributions/packages
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -86,8 +86,12 @@ public void parseIndex() throws Exception {
86
86
File defaultIndexFile = getIndexFile (Constants .DEFAULT_INDEX_FILE_NAME );
87
87
if (defaultIndexFile .exists ()) {
88
88
// Check main index signature
89
- if (!PreferencesData .areInsecurePackagesAllowed () && !signatureVerifier .isSigned (defaultIndexFile )) {
90
- throw new SignatureVerificationFailedException (Constants .DEFAULT_INDEX_FILE_NAME );
89
+ if (!signatureVerifier .isSigned (defaultIndexFile )) {
90
+ if (PreferencesData .areInsecurePackagesAllowed ()) {
91
+ System .err .println (format (tr ("Warning: forced trusting untrusted contributions" )));
92
+ } else {
93
+ throw new SignatureVerificationFailedException (Constants .DEFAULT_INDEX_FILE_NAME );
94
+ }
91
95
}
92
96
93
97
mergeContributions (defaultIndexFile );
You can’t perform that action at this time.
0 commit comments