aboutsummaryrefslogtreecommitdiff
path: root/src/luarocks/install.lua
diff options
context:
space:
mode:
Diffstat (limited to 'src/luarocks/install.lua')
-rw-r--r--src/luarocks/install.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/luarocks/install.lua b/src/luarocks/install.lua
index 15e905e1..3b399ebc 100644
--- a/src/luarocks/install.lua
+++ b/src/luarocks/install.lua
@@ -58,6 +58,12 @@ function install_binary_rock(rock_file)
58 ok, err, errcode = deps.fulfill_dependencies(rockspec) 58 ok, err, errcode = deps.fulfill_dependencies(rockspec)
59 if err then return nil, err, errcode end 59 if err then return nil, err, errcode end
60 60
61 -- For compatibility with .rock files built with LuaRocks 1
62 if not fs.exists(path.rock_manifest_file(name, version)) then
63 ok, err = manif.make_rock_manifest(name, version)
64 if err then return nil, err end
65 end
66
61 ok, err = rep.run_hook(rockspec, "post_install") 67 ok, err = rep.run_hook(rockspec, "post_install")
62 if err then return nil, err end 68 if err then return nil, err end
63 69