summaryrefslogtreecommitdiffstats
path: root/cron-model.lua
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 /cron-model.lua
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
Diffstat (limited to 'cron-model.lua')
-rw-r--r--cron-model.lua8
1 files changed, 5 insertions, 3 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