diff --git a/manifest.jps b/manifest.jps index 913cbc5..b1ac608 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 = 14, + 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 {