aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2019-09-05 12:22:55 -0300
committerHisham Muhammad <hisham@gobolinux.org>2019-09-05 14:49:18 -0300
commit319224cb48de98b345f30698f1c93054a494735d (patch)
tree0c744509665cc76ac506582b9d3526ec991b82f0
parentc5ecbdfaffd96bb07928f63fbc0b7398333284b7 (diff)
downloadluarocks-319224cb48de98b345f30698f1c93054a494735d.tar.gz
luarocks-319224cb48de98b345f30698f1c93054a494735d.tar.bz2
luarocks-319224cb48de98b345f30698f1c93054a494735d.zip
fix local search of manifests
Since #1065 it was failing to find the unversioned `manifest` files inside `<rocks_tree>/lib/luarocks/rocks-5.x/`. The result was that `luarocks install foo` worked but then `luarocks show foo` didn't.
-rw-r--r--src/luarocks/search.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/luarocks/search.lua b/src/luarocks/search.lua
index 46c47309..9b13b7cc 100644
--- a/src/luarocks/search.lua
+++ b/src/luarocks/search.lua
@@ -108,7 +108,7 @@ local function manifest_search(result_tree, repo, query, lua_version, is_local)
108 repo = repo .. "/manifests/" .. query.namespace 108 repo = repo .. "/manifests/" .. query.namespace
109 end 109 end
110 110
111 local manifest, err, errcode = manif.load_manifest(repo, lua_version, true) 111 local manifest, err, errcode = manif.load_manifest(repo, lua_version, not is_local)
112 if not manifest then 112 if not manifest then
113 return nil, err, errcode 113 return nil, err, errcode
114 end 114 end