From bb8a45929fdf69682ffe5c1de2f1e7883c6a2f66 Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Mon, 28 Dec 2009 11:42:43 +0000 Subject: basename function is no longer in acf-core-0.9.0, minor bugfix in listchanges. --- lbu-listchanges-html.lsp | 2 +- lbu-model.lua | 3 ++- 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 %>

Download Overlay

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 -- cgit v1.2.3