]> git.e2factory.org Git - e2factory.git/commit
Massage e2.conf searching/parsing into a single function.
authorTobias Ulmer <tu@emlix.com>
Mon, 2 Dec 2013 19:35:42 +0000 (20:35 +0100)
committerTobias Ulmer <tu@emlix.com>
Wed, 16 Nov 2016 14:41:17 +0000 (15:41 +0100)
commit910bef7481a0a22363a5b1cdb2348e758c73d56c
treed3a0677ff3a68fae8203755ca66f2452a6a65cfe
parentc2e45929371e305c550d6575b4e8d153ff652658
Massage e2.conf searching/parsing into a single function.

Move read_global_config() into e2lib.get_global_config().

Collapse reading of .e2/e2config into get_global_config(). Remove need for
e2lib.globals.cmdline vector which was only used to pass --e2-config
around. Remove e2lib.sete2config() which used to set the E2_CONFIG
environment variable for calling another e2 tool.

In e2-fetch-project, pass arg vector to e2-install-e2. Previously this
relied on E2_CONFIG being set. Now all arguments, --e2-config, warning
flags and verbosity options are passed along.

The returned config table is locked to detect errors.

Update ldoc comments while cleaning up.

Signed-off-by: Tobias Ulmer <tu@emlix.com>
generic/e2lib.lua
generic/e2option.lua
global/e2-create-project.lua
global/e2-fetch-project.lua
global/e2-install-e2.lua
local/e2tool.lua