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
commitd64e9f4e33f94637a33c70fbaad8b80a72b06d2f (patch)
treef149e543b062d694bda996611288f06bbcf0ce51
parentccdd082c5fe3434aa9f069f6bd634ea7642d9c61 (diff)
downloadacf-postfix-d64e9f4e33f94637a33c70fbaad8b80a72b06d2f.tar.bz2
acf-postfix-d64e9f4e33f94637a33c70fbaad8b80a72b06d2f.tar.xz
Tested by removing expected packages, files, and directories. Fixed resulting bugs.
git-svn-id: svn://svn.alpinelinux.org/acf/postfix/trunk@1683 ab2d0c66-481e-0410-8bed-d214d4d58bed
-rw-r--r--postfix-model.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/postfix-model.lua b/postfix-model.lua
index 87e6a00..57cdc9b 100644
--- a/postfix-model.lua
+++ b/postfix-model.lua
@@ -35,8 +35,8 @@ function getfilelist()
local listed_files = {}
for i,name in ipairs(filelist) do
- local filedetails = fs.stat(name)
- table.insert ( listed_files , {filename=name, mtime=filedetails.mtime, filesize=filedetails.size} )
+ local filedetails = fs.stat(name) or {}
+ table.insert ( listed_files , {filename=name, mtime=filedetails.mtime or "---", filesize=filedetails.size or "0"} )
end
table.sort(listed_files, function (a,b) return (a.filename < b.filename) end )