diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2018-06-24 19:20:07 -0300 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2018-07-01 15:51:36 -0300 |
commit | e0be0ddde3c457b5ab91f6f040529753d4e5553a (patch) | |
tree | 3dadc9c33c3cf483324150eb4d7125765282e76b /src | |
parent | f7afb0a735aa9284742e18c972c30ff266f2d4ad (diff) | |
download | luarocks-e0be0ddde3c457b5ab91f6f040529753d4e5553a.tar.gz luarocks-e0be0ddde3c457b5ab91f6f040529753d4e5553a.tar.bz2 luarocks-e0be0ddde3c457b5ab91f6f040529753d4e5553a.zip |
manif: fix loading rock manifest from the correct repo
get_providing_file was always loading the rock_manifest from the
default repo.
Diffstat (limited to 'src')
-rw-r--r-- | src/luarocks/manif.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/luarocks/manif.lua b/src/luarocks/manif.lua index c6d0e168..d6980299 100644 --- a/src/luarocks/manif.lua +++ b/src/luarocks/manif.lua | |||
@@ -220,7 +220,7 @@ function manif.get_providing_file(name, version, item_type, item_name, repo) | |||
220 | end | 220 | end |
221 | 221 | ||
222 | -- Fallback to rock manifest scanning. | 222 | -- Fallback to rock manifest scanning. |
223 | local rock_manifest = manif.load_rock_manifest(name, version) | 223 | local rock_manifest = manif.load_rock_manifest(name, version, repo and repo.root) |
224 | local subtree = rock_manifest.lib | 224 | local subtree = rock_manifest.lib |
225 | 225 | ||
226 | for path_part in file_path:gmatch("[^/]+") do | 226 | for path_part in file_path:gmatch("[^/]+") do |