From 1d27f127911a450051b0af91529c88f1a3479027 Mon Sep 17 00:00:00 2001 From: remittor Date: Sun, 23 Mar 2025 12:43:27 +0300 Subject: [PATCH] luci: Fix version check for v24.10 release pkg --- .../htdocs/luci-static/resources/view/zapret/tools.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/luci-app-zapret/htdocs/luci-static/resources/view/zapret/tools.js b/luci-app-zapret/htdocs/luci-static/resources/view/zapret/tools.js index 2001bdc..23352f5 100644 --- a/luci-app-zapret/htdocs/luci-static/resources/view/zapret/tools.js +++ b/luci-app-zapret/htdocs/luci-static/resources/view/zapret/tools.js @@ -161,6 +161,11 @@ return baseclass.extend({ if (spos > 0) { ver = ver.substring(0, spos); } + let mpos = ver.lastIndexOf("-"); + if (mpos > 0 && ver.substring(mpos+1, mpos+2) == 'r') { + // release number + ver = ver.substring(0, mpos); + } } pkg_dict[name] = ver; }