summaryrefslogtreecommitdiffstats
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
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.
-rw-r--r--lbu-listchanges-html.lsp2
-rw-r--r--lbu-model.lua3
2 files changed, 3 insertions, 2 deletions
diff --git a/lbu-listchanges-html.lsp b/lbu-listchanges-html.lsp
index 2e9c3fe..1b2308b 100644
--- a/lbu-listchanges-html.lsp
+++ b/lbu-listchanges-html.lsp
@@ -9,7 +9,7 @@ require("viewfunctions")
if viewlibrary.check_permission("commit") then
viewlibrary.dispatch_component("commit")
end
-end %>
+%>
<% if viewlibrary.check_permission("getpackage") then %>
<H1>Download Overlay</H1>
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