From f919fd5ef137f91ee4eabcdbf8b8a1da84e0f3c4 Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Wed, 7 May 2008 17:37:37 +0000 Subject: Rewrote getopts.getoptsfromfile function to handle more complicated config files and removed getopts.getoptsfromfile_onperline function git-svn-id: svn://svn.alpinelinux.org/acf/alpine-conf/trunk@1111 ab2d0c66-481e-0410-8bed-d214d4d58bed --- lbu-model.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lbu-model.lua b/lbu-model.lua index 6807e87..62e008f 100644 --- a/lbu-model.lua +++ b/lbu-model.lua @@ -144,10 +144,10 @@ end function getconfig () local path = configfile local config = {} - local configopts + local configopts = {} local errors = {} if (fs.is_file(path)) then - configopts = getopts.getoptsfromfile_onperline(path) or {} + configopts = getopts.getoptsfromfile(path, "") or {} end local lbumedias = availablemedias() if not (configopts.LBU_MEDIA) then -- cgit v1.2.3