Skip to content
Snippets Groups Projects
Commit 6366bc2d authored by boklm's avatar boklm Committed by Richard Pospesel
Browse files

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).
parent 0836bd0b
No related branches found
No related tags found
No related merge requests found
......@@ -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',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment