Skip to content

Commit 2bd4f4f

Browse files
committed
update variable names
Signed-off-by: Harta Angkasa <[email protected]>
1 parent 3dbbef0 commit 2bd4f4f

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

build-automation.mjs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,19 @@ const checkIfThereAreNewVersions = async (github) => {
1919
const { stdout } = await exec(`ls ${supportedVersion}`);
2020
const baseVersions = stdout.trim().split("\n");
2121

22-
const debianVersion = baseVersions.find(v => !v.startsWith("alpine"));
23-
const { stdout: debianVersionOutput } = await exec(`. ./functions.sh && get_full_version ./${supportedVersion}/${debianVersion}`, { shell: "bash" });
22+
const standardVersion = baseVersions.find(v => !v.startsWith("alpine"));
23+
const { stdout: standardVersionOutput } = await exec(`. ./functions.sh && get_full_version ./${supportedVersion}/${standardVersion}`, { shell: "bash" });
2424

2525
const alpineVersion = baseVersions.find(v => v.startsWith("alpine"));
2626
const { stdout: alpineVersionOutput } = await exec(`. ./functions.sh && get_full_version ./${supportedVersion}/${alpineVersion}`, { shell: "bash" });
2727

28-
const fullVersion = { debian : debianVersionOutput.trim(), alpine: alpineVersionOutput.trim() };
29-
console.log(`${supportedVersion}: debian=${fullVersion.debian}, alpine=${fullVersion.alpine}`);
28+
const fullVersion = { main : standardVersionOutput.trim(), alpine: alpineVersionOutput.trim() };
29+
console.log(`${supportedVersion}: main=${fullVersion.main}, alpine=${fullVersion.alpine}`);
3030

3131
latestSupportedVersions[supportedVersion] = {
32-
fullVersion: fullVersion.debian,
32+
fullVersion: fullVersion.main,
3333
alpineVersion: fullVersion.alpine,
34-
alpineIsBehind: fullVersion.debian !== fullVersion.alpine
34+
alpineIsBehind: fullVersion.main !== fullVersion.alpine
3535
};
3636
}
3737

@@ -56,17 +56,17 @@ const checkIfThereAreNewVersions = async (github) => {
5656

5757
const availableFullVersion = `${availableMajor}.${availableMinor}.${availablePatch}`;
5858

59-
const newDebian = Number(availableMinor) > Number(latestMinor) || (availableMinor === latestMinor && Number(availablePatch) > Number(latestPatch));
59+
const newMainline = Number(availableMinor) > Number(latestMinor) || (availableMinor === latestMinor && Number(availablePatch) > Number(latestPatch));
6060
const newAlpine = Number(availableMinor) > Number(alpineMinor) || (availableMinor === alpineMinor && Number(availablePatch) > Number(alpinePatch));
6161

6262
const isCatchup = supported.alpineIsBehind && newAlpine && availableFullVersion === supported.fullVersion;
6363

64-
// Alpine will be always behind or equal to Debian
65-
// So if Debian is new version, then alpineOnly is always false. And vice versa
66-
if (newDebian || isCatchup) {
64+
// Alpine will be always behind or equal to main
65+
// So if main is new version, then alpineOnly is always false. And vice versa
66+
if (newMainline || isCatchup) {
6767
filteredNewerVersions[availableMajor] = {
6868
fullVersion: availableFullVersion,
69-
alpineOnly: !newDebian
69+
alpineOnly: !newMainline
7070
};
7171
}
7272
}

0 commit comments

Comments
 (0)