mirror of
https://gitlab.alpinelinux.org/alpine/abuild.git
synced 2024-12-23 07:22:53 +00:00
aports.lua: read variables frrom abuild.conf
This commit is contained in:
parent
0b83646614
commit
aa65657a76
13
aports.lua
13
aports.lua
@ -1,5 +1,18 @@
|
|||||||
module(..., package.seeall)
|
module(..., package.seeall)
|
||||||
|
|
||||||
|
abuild_conf_file = "/etc/abuild.conf"
|
||||||
|
|
||||||
|
local abuild_conf = {}
|
||||||
|
|
||||||
|
function get_abuild_conf(var)
|
||||||
|
if abuild_conf[var] == nil then
|
||||||
|
local f = io.popen(" . "..abuild_conf_file..' ; echo -n "$'..var..'"')
|
||||||
|
abuild_conf[var] = f:read("*all")
|
||||||
|
f:close()
|
||||||
|
end
|
||||||
|
return abuild_conf[var]
|
||||||
|
end
|
||||||
|
|
||||||
local function split_subpkgs(str)
|
local function split_subpkgs(str)
|
||||||
local t = {}
|
local t = {}
|
||||||
local e
|
local e
|
||||||
|
Loading…
Reference in New Issue
Block a user