summaryrefslogtreecommitdiff
path: root/updater.lua
diff options
context:
space:
mode:
authorKarel Kočí <karel.koci@nic.cz>2019-11-26 09:31:18 +0100
committerKarel Kočí <karel.koci@nic.cz>2019-11-26 09:31:18 +0100
commit82694ab19cd1a350e40febdfb91d428664fca47d (patch)
tree08376ba0566f66aaae4f4ebadac900443e28391a /updater.lua
parent351a4f362e0729263d36127c046994194561d5fe (diff)
downloadopenwrt-personal-pkgs-82694ab19cd1a350e40febdfb91d428664fca47d.tar.gz
openwrt-personal-pkgs-82694ab19cd1a350e40febdfb91d428664fca47d.tar.bz2
openwrt-personal-pkgs-82694ab19cd1a350e40febdfb91d428664fca47d.zip
updater.lua: do not fail if unsupported
Diffstat (limited to 'updater.lua')
-rw-r--r--updater.lua6
1 files 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)