[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [Git][tpo/applications/tor-browser-build][main] Bug 40890: Make sur version is a string in downloads.json



Title: GitLab

richard pushed to branch main at The Tor Project / Applications / tor-browser-build

Commits:

  • ffcd536e
    by Nicolas Vigier at 2023-06-28T14:16:30+02:00
    Bug 40890: Make sur version is a string in downloads.json
    
    Some version numbers like 12.5 can be stored as a numeric value instead
    of a string, so we should explicitely store the version as a string. At
    the same time we do the same for tag/git_tag (although tags are less
    likely to look like a number).
    

1 changed file:

Changes:

  • tools/update-responses/update_responses
    ... ... @@ -176,8 +176,8 @@ sub get_perplatform_downloads {
    176 176
                 next;
    
    177 177
             }
    
    178 178
             $downloads->{$os} = {
    
    179
    -            version => $version,
    
    180
    -            git_tag => $gittag,
    
    179
    +            version => "$version",
    
    180
    +            git_tag => "$gittag",
    
    181 181
                 binary => "$download_url/$file",
    
    182 182
                 sig => "$download_url/$file.asc",
    
    183 183
             };
    
    ... ... @@ -459,8 +459,8 @@ sub write_downloads_json {
    459 459
             my $version = $config->{channels}{$channel};
    
    460 460
             my $tag = get_config($config, $version, 'any', 'tag');
    
    461 461
             my $data = {
    
    462
    -            version => $version,
    
    463
    -            tag => $tag,
    
    462
    +            version => "$version",
    
    463
    +            tag => "$tag",
    
    464 464
                 downloads => get_version_downloads($config, $version),
    
    465 465
             };
    
    466 466
             write_htdocs($channel, 'downloads.json',
    

  • _______________________________________________
    tor-commits mailing list
    tor-commits@xxxxxxxxxxxxxxxxxxxx
    https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits