mirror of
https://github.com/remittor/zapret-openwrt.git
synced 2026-01-27 04:40:34 +03:00
luci: updater: Fix check result after checkUpdates
This commit is contained in:
@@ -102,9 +102,11 @@ return baseclass.extend({
|
|||||||
}
|
}
|
||||||
let pkg_url = txt.match(/^ZAP_PKG_URL\s*=\s*(.+)$/m);
|
let pkg_url = txt.match(/^ZAP_PKG_URL\s*=\s*(.+)$/m);
|
||||||
if (code && pkg_url) {
|
if (code && pkg_url) {
|
||||||
if (code[1] == 'E' && !wnd.forced_reinstall) {
|
if (!wnd.forced_reinstall) {
|
||||||
wnd.setStage(0); // install not needed
|
if (code[1] == 'E' || code[1] == 'G') {
|
||||||
return;
|
wnd.setStage(0); // install not needed
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
wnd.pkg_url = pkg_url[1];
|
wnd.pkg_url = pkg_url[1];
|
||||||
wnd.setStage(2); // enable all buttons
|
wnd.setStage(2); // enable all buttons
|
||||||
|
|||||||
Reference in New Issue
Block a user