diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2012-05-15 11:18:51 -0300 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2012-05-15 11:18:51 -0300 |
commit | 87519044aa3af396856d911629c58d4fe95d52fb (patch) | |
tree | 0d390e792f69ca54b44d18bb93e9279b4cfcbe92 | |
parent | 427969b562399683086e1b01596085a264932343 (diff) | |
download | luarocks-87519044aa3af396856d911629c58d4fe95d52fb.tar.gz luarocks-87519044aa3af396856d911629c58d4fe95d52fb.tar.bz2 luarocks-87519044aa3af396856d911629c58d4fe95d52fb.zip |
Oops, fooled by the precedence rules. This should fix the fix for #52.
-rw-r--r-- | src/luarocks/loader.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/luarocks/loader.lua b/src/luarocks/loader.lua index 362a986a..ac694124 100644 --- a/src/luarocks/loader.lua +++ b/src/luarocks/loader.lua | |||
@@ -145,7 +145,7 @@ local function select_module(module, filter_module_name) | |||
145 | for i, entry in ipairs(entries) do | 145 | for i, entry in ipairs(entries) do |
146 | local name, version = entry:match("^([^/]*)/(.*)$") | 146 | local name, version = entry:match("^([^/]*)/(.*)$") |
147 | local module_name = tree.manifest.repository[name][version][1].modules[module] | 147 | local module_name = tree.manifest.repository[name][version][1].modules[module] |
148 | if not type(module_name) == "string" then | 148 | if type(module_name) ~= "string" then |
149 | error("Invalid format in manifest file (invalid data for "..tostring(name).." "..tostring(version)..")") | 149 | error("Invalid format in manifest file (invalid data for "..tostring(name).." "..tostring(version)..")") |
150 | end | 150 | end |
151 | module_name = filter_module_name(module_name, name, version, tree.tree, i) | 151 | module_name = filter_module_name(module_name, name, version, tree.tree, i) |