From 82694ab19cd1a350e40febdfb91d428664fca47d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Tue, 26 Nov 2019 09:31:18 +0100 Subject: updater.lua: do not fail if unsupported --- updater.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/updater.lua b/updater.lua index 7313ab0..9939f60 100644 --- a/updater.lua +++ b/updater.lua @@ -15,10 +15,12 @@ end local mode = uci_cursor:get("updater", "turris", "mode") local animal = uci_cursor:get("updater", "turris", "branch") if mode and mode ~= "branch" then - DIE("Only branch mode allowed for personal-pkgs, used: " .. tostring(mode)) + WARN("Only branch mode allowed for personal-pkgs, used: " .. tostring(mode)) + return end if animal ~= "hbd" and animal ~= "hbk" then - DIE("Unsupported branch for personal-pkgs: " .. tostring(animal)) + WARN("Unsupported branch for personal-pkgs: " .. tostring(animal)) + return end Repository("personal-pkgs", animal .. "/" .. board) -- cgit v1.2.3