Skip to content

Commit

Permalink
Redefine lts/security version in python+java
Browse files Browse the repository at this point in the history
  • Loading branch information
willnode committed Mar 17, 2024
1 parent 96f767a commit 78910ad
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 10 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "domcloud-bridge",
"version": "0.44.0",
"version": "0.45.0",
"description": "Deployment runner for DOM Cloud",
"main": "app.js",
"engines": {
Expand Down
12 changes: 5 additions & 7 deletions src/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,18 +86,16 @@ export const getPythonVersion = (/** @type {string} */ status) => {
return expand(status);
}
switch (status) {
case 'system':
return expand(status);
case 'lts':
case 'security':
var security = pythonVersionsList.find(x => {
return !x.startsWith(stable.substring(0, stable.lastIndexOf('.')));
});
var security = pythonVersionsList[2];
return expand(security || stable);
case 'latest':
case 'stable':
default:
return expand(stable);
case 'system':
default:
return expand(status);
}
}

Expand Down Expand Up @@ -157,7 +155,7 @@ export const getJavaVersion = (/** @type {string} */ status) => {
case 'lts':
case 'security':
var security = javaVersionsList.find(x => {
return !x.startsWith(stable.substring(0, stable.lastIndexOf('.')));
return x !== stable && parseInt(x.split('.')[0]) % 3 === 0
});
return expand(security || stable);
case 'latest':
Expand Down

0 comments on commit 78910ad

Please sign in to comment.