summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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