Fix the gap between the start of a maintenance period for an LTS and the new LTS start
This commit is contained in:
parent
ba45415915
commit
a090a371cd
|
@ -38,7 +38,7 @@ for (version of versions) {
|
||||||
let maintenance = new Date(`${config[version].maintenance}T00:00:00.00`).getTime();
|
let maintenance = new Date(`${config[version].maintenance}T00:00:00.00`).getTime();
|
||||||
let isCurrent = foundCurrent ? false : isNaN(lts) || lts >= now;
|
let isCurrent = foundCurrent ? false : isNaN(lts) || lts >= now;
|
||||||
foundCurrent = isCurrent || foundCurrent;
|
foundCurrent = isCurrent || foundCurrent;
|
||||||
let isLTS = foundLTS ? false : (maintenance >= now) && (now >= lts);
|
let isLTS = foundLTS ? false : (now >= lts);
|
||||||
foundLTS = isLTS || foundLTS;
|
foundLTS = isLTS || foundLTS;
|
||||||
let codename = config[version].codename
|
let codename = config[version].codename
|
||||||
let defaultAlpine = config[version]['alpine-default']
|
let defaultAlpine = config[version]['alpine-default']
|
||||||
|
|
Loading…
Reference in New Issue