summaryrefslogtreecommitdiffstats
path: root/apk-model.lua
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2008-10-03 12:42:13 +0000
committerTed Trask <ttrask01@yahoo.com>2008-10-03 12:42:13 +0000
commitc333d1b658d6a0e8186633697d77f6ab0fd1a5b2 (patch)
tree473b3f42572ddb62cab5dbdce36c2a28c2ba5f87 /apk-model.lua
parentb9d7a2991f19d0b99dc315dcef95d8f69e4faa76 (diff)
downloadacf-apk-tools-c333d1b658d6a0e8186633697d77f6ab0fd1a5b2.tar.bz2
acf-apk-tools-c333d1b658d6a0e8186633697d77f6ab0fd1a5b2.tar.xz
Modified format library. parse_configfile2, update_configfile2, get_section, and set_section became parse_ini_file, update_ini_file, get_ini_section, and set_ini_section. Updated all code that used these functions.
git-svn-id: svn://svn.alpinelinux.org/acf/apk-tools/trunk@1539 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'apk-model.lua')
-rw-r--r--apk-model.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/apk-model.lua b/apk-model.lua
index 5c1af6e..e07ba9a 100644
--- a/apk-model.lua
+++ b/apk-model.lua
@@ -48,7 +48,7 @@ install_package = function(package,sessiondata)
end
get_config = function()
- local config = format.parse_configfile2(fs.read_file(configfile), "")
+ local config = format.parse_ini_file(fs.read_file(configfile), "")
local source = cfe({ value=config.APK_PATH or "", label="APK Source" })
return cfe({ type="group", value={source=source}, label="APK Config" })
end
@@ -57,7 +57,7 @@ set_config = function(newconfig)
-- FIXME - don't know how to validate
local success = true
if success then
- fs.write_file(configfile, format.update_configfile2(fs.read_file(configfile) or "", "", "APK_PATH", newconfig.value.source.value))
+ fs.write_file(configfile, format.update_ini_file(fs.read_file(configfile) or "", "", "APK_PATH", newconfig.value.source.value))
else
newconfig.errtxt = "Failed to update config"
end