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

richard (@richard) git at gitlab.torproject.org
Wed Jun 28 18:55:12 UTC 2023



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


Commits:
6366bc2d by Nicolas Vigier at 2023-06-28T18:55:01+00: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:

- tools/update-responses/update_responses


Changes:

=====================================
tools/update-responses/update_responses
=====================================
@@ -176,8 +176,8 @@ sub get_perplatform_downloads {
             next;
         }
         $downloads->{$os} = {
-            version => $version,
-            git_tag => $gittag,
+            version => "$version",
+            git_tag => "$gittag",
             binary => "$download_url/$file",
             sig => "$download_url/$file.asc",
         };
@@ -459,8 +459,8 @@ sub write_downloads_json {
         my $version = $config->{channels}{$channel};
         my $tag = get_config($config, $version, 'any', 'tag');
         my $data = {
-            version => $version,
-            tag => $tag,
+            version => "$version",
+            tag => "$tag",
             downloads => get_version_downloads($config, $version),
         };
         write_htdocs($channel, 'downloads.json',



View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser-build/-/commit/6366bc2d0345ad83540f98bd815f177cac985d46

-- 
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser-build/-/commit/6366bc2d0345ad83540f98bd815f177cac985d46
You're receiving this email because of your account on gitlab.torproject.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.torproject.org/pipermail/tbb-commits/attachments/20230628/fe8472f8/attachment-0001.htm>


More information about the tbb-commits mailing list