summaryrefslogtreecommitdiffstats
path: root/lbu-model.lua
diff options
context:
space:
mode:
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