New plan: we always use the same packager name, regardless of whether

we're using snapshots or releases
pull/1086/head
Jesse Vincent 3 years ago
parent a5c1cfeb85
commit 14a2a5dea6
No known key found for this signature in database
GPG Key ID: 122F5DF7108E4046

@ -50,18 +50,18 @@ my $platforms_template = {
'toolsDependencies' => [ 'toolsDependencies' => [
{ {
'name' => 'xpack-arm-none-eabi-gcc', 'name' => 'xpack-arm-none-eabi-gcc',
'packager' => 'Keyboardio', 'packager' => 'keyboardio',
'version' => '9.3.1-1.3' 'version' => '9.3.1-1.3'
}, },
{ {
'packager' => 'Keyboardio', 'packager' => 'keyboardio',
'version' => '0.11.0-1', 'version' => '0.11.0-1',
'name' => 'xpack-openocd' 'name' => 'xpack-openocd'
}, },
{ {
'name' => 'dfu-util', 'name' => 'dfu-util',
'version' => '0.10.0-arduino1', 'version' => '0.10.0-arduino1',
'packager' => 'Keyboardio' 'packager' => 'keyboardio'
} }
], ],
'version' => '0.0.1', 'version' => '0.0.1',
@ -200,11 +200,11 @@ sub update_index_file {
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'}; #my $this_packager = $data->{'packages'}->[0]->{'name'};
foreach my $tool (@{$platforms_template->{'gd32'}->{'toolsDependencies'}}) { #foreach my $tool (@{$platforms_template->{'gd32'}->{'toolsDependencies'}}) {
# we need to set the packager of these tools to ourself, since that's what arduino expects # # we need to set the packager of these tools to ourself, since that's what arduino expects
$tool->{"packager"} = $this_packager; # $tool->{"packager"} = $this_packager;
} # }
if ($only_latest_platform) { if ($only_latest_platform) {
@{ $data->{'packages'}->[0]->{'platforms'} } = @{ $data->{'packages'}->[0]->{'platforms'} } =

Loading…
Cancel
Save