summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2009-01-16 21:24:16 +0000
committerTed Trask <ttrask01@yahoo.com>2009-01-16 21:24:16 +0000
commitc7f60e8d633bd52d5ddbd96d9f2ea79fe8f38d43 (patch)
tree39a5085a858e44c7c477c3fd9f53c3e79d45fe2a
parent3c67f77555e636f949588c049c2074c70a1cbe33 (diff)
downloadacf-alpine-baselayout-c7f60e8d633bd52d5ddbd96d9f2ea79fe8f38d43.tar.bz2
acf-alpine-baselayout-c7f60e8d633bd52d5ddbd96d9f2ea79fe8f38d43.tar.xz
Tested by removing expected packages, files, and directories. Fixed resulting bugs.
git-svn-id: svn://svn.alpinelinux.org/acf/alpine-baselayout/trunk@1683 ab2d0c66-481e-0410-8bed-d214d4d58bed
-rw-r--r--cron-model.lua8
-rw-r--r--interfaces-model.lua9
2 files changed, 7 insertions, 10 deletions
diff --git a/cron-model.lua b/cron-model.lua
index 65d4393..40ec992 100644
--- a/cron-model.lua
+++ b/cron-model.lua
@@ -24,9 +24,11 @@ local function list_periods()
end
--[[ local reverseperiods = {}
for i,per in ipairs(periods) do reverseperiods[per] = i end
- for dir in posix.files(baseurl) do
- if fs.is_dir(baseurl .. dir) and (dir ~= ".") and (dir ~= "..") and not reverseperiods[dir] then
- periods[#periods+1] = dir
+ if fs.is_dir(baseurl) then
+ for dir in posix.files(baseurl) do
+ if fs.is_dir(baseurl .. dir) and (dir ~= ".") and (dir ~= "..") and not reverseperiods[dir] then
+ periods[#periods+1] = dir
+ end
end
end--]]
end
diff --git a/interfaces-model.lua b/interfaces-model.lua
index 5c10283..93456e4 100644
--- a/interfaces-model.lua
+++ b/interfaces-model.lua
@@ -92,13 +92,8 @@ iface.read_file = function ()
end
iface.write_file = function ()
- local rc = false
- local file = io.open ( iface.file.label, "w")
- if file then
- file:write ( iface.file.value )
- file:close()
- rc = true
- end
+ local rc = true
+ fs.write_file(iface.file.label, iface.file.value)
return rc
end