Correctly? set the packager for our tools for gd32

pull/1086/head
Jesse Vincent 3 years ago
parent a21a68d3eb
commit a5c1cfeb85
No known key found for this signature in database
GPG Key ID: 122F5DF7108E4046

@ -199,6 +199,13 @@ sub update_index_file {
|| die "Could not open $index_path $!"; || die "Could not open $index_path $!";
my $json_text = <$fh>; my $json_text = <$fh>;
my $data = decode_json($json_text); my $data = decode_json($json_text);
my $this_packager = $data->{'packages'}->[0]->{'name'};
foreach my $tool (@{$platforms_template->{'gd32'}->{'toolsDependencies'}}) {
# we need to set the packager of these tools to ourself, since that's what arduino expects
$tool->{"packager"} = $this_packager;
}
if ($only_latest_platform) { if ($only_latest_platform) {
@{ $data->{'packages'}->[0]->{'platforms'} } = @{ $data->{'packages'}->[0]->{'platforms'} } =
( $platforms_template->{'avr'}, $platforms_template->{'gd32'} ); ( $platforms_template->{'avr'}, $platforms_template->{'gd32'} );

Loading…
Cancel
Save