Modified latest parameter

This commit is contained in:
Gerrit Grunwald 2021-03-14 12:46:59 +01:00
parent 33ea571461
commit a314fce4b5
2 changed files with 4 additions and 12 deletions

7
dist/setup/index.js vendored
View file

@ -33705,7 +33705,7 @@ function getDownloadInfo(refs, version, arch, javaPackage, distro = 'zulu') {
archiveType = distribution === 'ojdk_build' ? 'zip' : 'tar.gz';
}
}
let latest = 'explicit';
let latest = '';
if (version.endsWith('x')) {
if (version.endsWith('.x')) {
version = version.slice(0, -2);
@ -33716,10 +33716,7 @@ function getDownloadInfo(refs, version, arch, javaPackage, distro = 'zulu') {
latest = 'overall';
}
}
if (version.endsWith('0') ||
version.length === 1 ||
version.length === 2 ||
version.includes('ea')) {
if (version.includes('ea')) {
latest = 'overall';
}
let url = constants_1.DISCO_URL + constants_1.PACKAGES_PATH;

View file

@ -236,7 +236,7 @@ async function getDownloadInfo(
}
}
let latest = 'explicit';
let latest = '';
if (version.endsWith('x')) {
if (version.endsWith('.x')) {
version = version.slice(0, -2);
@ -246,12 +246,7 @@ async function getDownloadInfo(
latest = 'overall';
}
}
if (
version.endsWith('0') ||
version.length === 1 ||
version.length === 2 ||
version.includes('ea')
) {
if (version.includes('ea')) {
latest = 'overall';
}