Skip to content
Snippets Groups Projects
Verified Commit 1b69bfc1 authored by Karel Koci's avatar Karel Koci :metal:
Browse files

lists: try to fix problem with migration from previous version

parent 64a9d0b5
No related branches found
No related tags found
No related merge requests found
......@@ -45,15 +45,6 @@ if not version_match or not self_version or version_match(self_version, "<60.0.1
DIE("Minimal required version of Updater-ng for Turris repository is 60.0.1!")
end
-- Script simplifying lists inclusion when older version of updater is used
function list_script(list)
if features["relative_uri"] then
Script(list)
else
Script((repo_base_uri or "https://repo.turris.cz/hbs") .. "/lists/" .. list)
end
end
if not board then
local model = model or os_release["LEDE_DEVICE_PRODUCT"]
if model:match("[Mm]ox") then
......@@ -66,4 +57,13 @@ if not board then
DIE("Unsupported Turris model: " .. tostring(model))
end
end
-- Script simplifying lists inclusion when older version of updater is used
function list_script(list)
if features["relative_uri"] then
Script(list)
else
Script((repo_base_uri or "https://repo.turris.cz/hbs") .. "/" .. board .. "/lists/" .. list)
end
end
----------------------------------------------------------------------------------
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment