summaryrefslogtreecommitdiffstats
path: root/lbu-model.lua
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2009-12-28 11:42:43 +0000
committerTed Trask <ttrask01@yahoo.com>2009-12-28 11:42:43 +0000
commitbb8a45929fdf69682ffe5c1de2f1e7883c6a2f66 (patch)
treecaba431fcf90e239466c2327b88d5cee3060f078 /lbu-model.lua
parent7c812521d5f1216a7b7f68a45adfeb80ad3c3500 (diff)
downloadacf-alpine-conf-bb8a45929fdf69682ffe5c1de2f1e7883c6a2f66.tar.bz2
acf-alpine-conf-bb8a45929fdf69682ffe5c1de2f1e7883c6a2f66.tar.xz
basename function is no longer in acf-core-0.9.0, minor bugfix in listchanges.
Diffstat (limited to 'lbu-model.lua')
-rw-r--r--lbu-model.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/lbu-model.lua b/lbu-model.lua
index 873d73d..30dc9f1 100644
--- a/lbu-model.lua
+++ b/lbu-model.lua
@@ -1,6 +1,7 @@
module (..., package.seeall)
-- Load libraries
+require("posix")
require("modelfunctions")
require("fs")
require("format")
@@ -472,7 +473,7 @@ function getpackage()
-- find and read the file
local package = cfe({ type="raw", label="error", option="application/x-gzip" })
for name in fs.find(".*tar%.gz", tmp) do
- package.label = basename(name)
+ package.label = posix.basename(name)
package.value = fs.read_file(name) or ""
break
end