diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2009-07-19 00:38:52 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2009-07-19 00:38:52 +0000 |
commit | 074b5dfc4ab98edaaec7133fa03f505686c9f357 (patch) | |
tree | 3d58d5748c3cd4b71769601419beffb27d4e6d2d /libs/uvl/luasrc | |
parent | 8fcd841aa9af96c8a4a4d3c1a555d2d1ed42332c (diff) |
fix fallout from nixio.fs transition
Diffstat (limited to 'libs/uvl/luasrc')
-rw-r--r-- | libs/uvl/luasrc/uvl.lua | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/libs/uvl/luasrc/uvl.lua b/libs/uvl/luasrc/uvl.lua index 33f45bf89f..7f149cf759 100644 --- a/libs/uvl/luasrc/uvl.lua +++ b/libs/uvl/luasrc/uvl.lua @@ -19,11 +19,10 @@ $Id$ -- @class module -- @cstyle instance -require "nixio.util" - local fs = require "nixio.fs" local uci = require "luci.model.uci" local util = require "luci.util" +local nutil = require "nixio.util" local table = require "table" local string = require "string" @@ -405,11 +404,11 @@ function UVL.read_scheme( self, shm, alias ) local bc = "%s/bytecode/%s.lua" %{ self.schemedir, shm } if not fs.access(bc) then - local files = nixio.util.consume(fs.glob(self.schemedir .. '/*/' .. shm)) + local files = nutil.consume((fs.glob(self.schemedir .. '/*/' .. shm))) if #files > 0 then local ok, err - for file in files do + for _, file in ipairs(files) do if not fs.access(file) then return false, so:error(ERR.SME_READ(so,file)) end |