From e7031bd89f7f758b070eb9d32b088d4ff2ec2a4f Mon Sep 17 00:00:00 2001 From: "alexey.lazarenko" Date: Fri, 3 Sep 2021 17:25:16 +0300 Subject: [PATCH 1/2] JE-59743 Need to remove odoo versions with outdated OS Debian 8 --- manifest.jps | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/manifest.jps b/manifest.jps index 913cbc5..353d524 100644 --- a/manifest.jps +++ b/manifest.jps @@ -13,7 +13,7 @@ globals: openerp_config: /etc/odoo/openerp-server.conf targetRegions: type: [ vz.*, pcs.* ] -categories: +categories: - apps/cms - apps/popular - apps/content-management @@ -22,10 +22,19 @@ onBeforeInit: | var url = "https://registry.hub.docker.com/v1/repositories/odoo/tags"; var tags = toNative(new com.hivext.api.core.utils.Transport().get(url)).sort(); var ver = {}, - def = 13; + def = 13, + tag; + for (var i = 0; i < tags.length; i++) { - ver[tags[i].name] = tags[i].name; - if (!isNaN(tags[i].name) && tags[i].name > def) def = tags[i].name; + tag = tags[i].name; + if (tag.split('.')[0] > 10) { + ver[tag] = tag; + } + tag = parseInt(tag); + + if (!isNaN(tag) && tag > def) { + def = tag; + } } return { From 5227d4a0c96a8053f5a268ad2d23c141f21d00b3 Mon Sep 17 00:00:00 2001 From: "alexey.lazarenko" Date: Fri, 3 Sep 2021 17:28:03 +0300 Subject: [PATCH 2/2] JE-59743 Need to remove odoo versions with outdated OS Debian 8 --- manifest.jps | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifest.jps b/manifest.jps index 353d524..b1ac608 100644 --- a/manifest.jps +++ b/manifest.jps @@ -22,7 +22,7 @@ onBeforeInit: | var url = "https://registry.hub.docker.com/v1/repositories/odoo/tags"; var tags = toNative(new com.hivext.api.core.utils.Transport().get(url)).sort(); var ver = {}, - def = 13, + def = 14, tag; for (var i = 0; i < tags.length; i++) {