diff options
author | Ted Trask <ttrask01@yahoo.com> | 2009-01-13 16:01:06 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2009-01-13 16:01:06 +0000 |
commit | 49d7ae2b2de57f807e7a93bdf1383c0ee8d7bc4b (patch) | |
tree | a230ad7bdbb535e7d092e6a37252029da55c2c54 | |
parent | e5e6ce3fcb14bb586549cb78a4577fd69033561c (diff) | |
download | acf-apk-tools-49d7ae2b2de57f807e7a93bdf1383c0ee8d7bc4b.tar.bz2 acf-apk-tools-49d7ae2b2de57f807e7a93bdf1383c0ee8d7bc4b.tar.xz |
Modified fs.lua to survive nil parameters. Added create_directory and used within create_file and write_file. Reviewed each read_file call to make sure handles nil return value.
git-svn-id: svn://svn.alpinelinux.org/acf/apk-tools/trunk@1677 ab2d0c66-481e-0410-8bed-d214d4d58bed
-rw-r--r-- | apk-model.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apk-model.lua b/apk-model.lua index e07ba9a..9da39b8 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_ini_file(fs.read_file(configfile), "") + local config = format.parse_ini_file(fs.read_file(configfile) or "", "") local source = cfe({ value=config.APK_PATH or "", label="APK Source" }) return cfe({ type="group", value={source=source}, label="APK Config" }) end |