File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
arduino-core/src/cc/arduino/contributions/packages Expand file tree Collapse file tree 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 {
8686 File defaultIndexFile = getIndexFile (Constants .DEFAULT_INDEX_FILE_NAME );
8787 if (defaultIndexFile .exists ()) {
8888 // 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+ }
9195 }
9296
9397 mergeContributions (defaultIndexFile );
You can’t perform that action at this time.
0 commit comments