From 896430931c3a1aa9607b0709163f085de3a16064 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Thu, 31 Jan 2019 09:55:00 +0100 Subject: updater-ng: pull upstream changes to turris.lua --- updater-ng/files/turris.lua | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'updater-ng') diff --git a/updater-ng/files/turris.lua b/updater-ng/files/turris.lua index e3dc02b..7071461 100644 --- a/updater-ng/files/turris.lua +++ b/updater-ng/files/turris.lua @@ -4,7 +4,7 @@ This file is part of updater-ng. Don't edit it. local uci_cursor = nil if uci then - uci_cursor = uci.cursor() + uci_cursor = uci.cursor(root_dir .. "/etc/config") else ERROR("UCI library is not available. Configuration not used.") end @@ -21,6 +21,8 @@ local mode = uci_cnf("mode", "branch") -- should we follow branch or version? local branch = uci_cnf("branch", "hbs") -- which branch to follow local version = uci_cnf("version", nil) -- which version to follow local lists = uci_cnf("lists", {}) -- what additional lists should we use +minimal_builds = uci_cnf("use_minimal", false) -- if packages-minimal should be used +Export('minimal_builds') -- Verify that we have sensible configuration if type(lists) == "string" then -- if there is single list then uci returns just a string @@ -32,7 +34,6 @@ if mode == "version" and not version then end -- Common URL base to Turris OS repository -local repo_base_uri if mode == "branch" then repo_base_uri = "https://repo.turris.cz/" .. branch elseif mode == "version" then @@ -54,7 +55,7 @@ local script_options = { } } -local base_uri = repo_base_uri .. "/lists/" +local base_url = repo_base_uri .. "/lists/" -- The distribution base script. It contains the repository and bunch of basic packages Script(base_url .. "base.lua", script_options) -- cgit v1.2.3