From 139134b3248d684b7a00d5bfae98d0b3bdb5f30c Mon Sep 17 00:00:00 2001 From: remittor Date: Sun, 18 Jan 2026 14:23:21 +0300 Subject: [PATCH] luci: updater: Fix check result after checkUpdates --- .../htdocs/luci-static/resources/view/zapret/updater.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/luci-app-zapret/htdocs/luci-static/resources/view/zapret/updater.js b/luci-app-zapret/htdocs/luci-static/resources/view/zapret/updater.js index 90d003f..48ddb90 100644 --- a/luci-app-zapret/htdocs/luci-static/resources/view/zapret/updater.js +++ b/luci-app-zapret/htdocs/luci-static/resources/view/zapret/updater.js @@ -102,9 +102,11 @@ return baseclass.extend({ } let pkg_url = txt.match(/^ZAP_PKG_URL\s*=\s*(.+)$/m); if (code && pkg_url) { - if (code[1] == 'E' && !wnd.forced_reinstall) { - wnd.setStage(0); // install not needed - return; + if (!wnd.forced_reinstall) { + if (code[1] == 'E' || code[1] == 'G') { + wnd.setStage(0); // install not needed + return; + } } wnd.pkg_url = pkg_url[1]; wnd.setStage(2); // enable all buttons