diff options
author | Soumith Chintala <soumith@gmail.com> | 2014-10-17 04:17:50 +0400 |
---|---|---|
committer | Soumith Chintala <soumith@gmail.com> | 2014-10-17 04:17:50 +0400 |
commit | cd1242a9b749b7af6239c5fcba10940c880b4543 (patch) | |
tree | 1a2661147480a040d8b8b23b076356b2849e94dc | |
parent | 6565607fee09d6d4c3d72f47502baab336551c2e (diff) |
fixing inline iterator for newer luarocks
-rw-r--r-- | inline.lua | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |