fix lua.fs depends bug and version bump to 1.3
This commit is contained in:
parent
8a6f751e82
commit
53a8baea39
4
Makefile
4
Makefile
@ -8,8 +8,8 @@ include $(TOPDIR)/rules.mk
|
||||
|
||||
LUCI_TITLE:=Argon Theme
|
||||
LUCI_DEPENDS:=
|
||||
PKG_VERSION:=1.2
|
||||
PKG_RELEASE:=01-20191109
|
||||
PKG_VERSION:=1.3
|
||||
PKG_RELEASE:=01-20191111
|
||||
|
||||
include $(TOPDIR)/feeds/luci/luci.mk
|
||||
|
||||
|
@ -26,7 +26,8 @@
|
||||
local util = require "luci.util"
|
||||
local http = require "luci.http"
|
||||
local disp = require "luci.dispatcher"
|
||||
local fs = require "luci.fs"
|
||||
local fs = require "nixio.fs"
|
||||
local nutil = require "nixio.util"
|
||||
|
||||
local boardinfo = util.ubus("system", "board")
|
||||
|
||||
@ -46,6 +47,15 @@
|
||||
local c = tree
|
||||
local i, r
|
||||
|
||||
function glob(...)
|
||||
local iter, code, msg = fs.glob(...)
|
||||
if iter then
|
||||
return nutil.consume(iter)
|
||||
else
|
||||
return nil, code, msg
|
||||
end
|
||||
end
|
||||
|
||||
-- tag all nodes leading to this page
|
||||
for i, r in ipairs(request) do
|
||||
if c.nodes and c.nodes[r] then
|
||||
@ -183,7 +193,7 @@
|
||||
math.randomseed(os.time())
|
||||
|
||||
local bgcount = 0
|
||||
for f in ipairs(fs.glob("/www/luci-static/argon/img/*")) do
|
||||
for f in ipairs(glob("/www/luci-static/argon/img/*")) do
|
||||
bgcount = bgcount + 1
|
||||
end
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user