Unverified Commit 2dc45a97 authored by aparnajyothi-y's avatar aparnajyothi-y Committed by GitHub
Browse files

Update installer.ts

parent 7455bac0
Loading
Loading
Loading
Loading
+8 −3
Changes for src/distributions/dragonwell/installer.ts: 8 added lines, 3 removed lines.
Original line number Diff line number Diff line
@@ -149,9 +149,14 @@ export class DragonwellDistribution extends JavaBase {

        // Some version of Dragonwell JDK are numerated with help of non-semver notation (more then 3 digits).
        // Common practice is to transform excess digits to the so-called semver build part, which is prefixed with the plus sign, to be able to operate with them using semver tools.
        if (jdkVersion.split('.').length > 3) {
          jdkVersion = convertVersionToSemver(jdkVersion);
        }
        const jdkVersionNums: string[] = jdkVersion
          .replace('+', '.')
          .split('.');
        jdkVersion = convertVersionToSemver(
          `${jdkVersionNums.slice(0, 3).join('.')}.${
            jdkVersionNums[jdkVersionNums.length - 1]
          }`
        );

        for (const edition in archMap) {
          eligibleVersions.push({