Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/torch/dok.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSoumith Chintala <soumith@gmail.com>2014-10-17 04:17:50 +0400
committerSoumith Chintala <soumith@gmail.com>2014-10-17 04:17:50 +0400
commitcd1242a9b749b7af6239c5fcba10940c880b4543 (patch)
tree1a2661147480a040d8b8b23b076356b2849e94dc
parent6565607fee09d6d4c3d72f47502baab336551c2e (diff)
fixing inline iterator for newer luarocks
-rw-r--r--inline.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/inline.lua b/inline.lua
index 970363a..7afef1e 100644
--- a/inline.lua
+++ b/inline.lua
@@ -2,7 +2,7 @@
-- inline help
-- that file defines all the tools and goodies to generate inline help
--------------------------------------------------------------------------------
-require 'luarocks.cfg'
+local luarocks_cfg = require 'luarocks.cfg'
local knownpkg = {}
@@ -267,7 +267,7 @@ end
local function packageiterator()
local co = coroutine.create(
function()
- local trees = luarocks.cfg.rocks_trees
+ local trees = luarocks_cfg.rocks_trees
for _,tree in ipairs(trees) do
if tree.lua_dir then
for file in paths.files(tree.lua_dir) do