Comparison

util/dependencies.lua @ 8223:adfffc5b4e2a

util.dependencies: Add compatibility code for LuaSocket no longer exporting as a global
author Kim Alvefur <zash@zash.se>
date Tue, 25 Jul 2017 13:16:31 +0200
parent 7769:2a7b52437167
child 8224:776789a98047
comparison
equal deleted inserted replaced
8222:67a9d2de2300 8223:adfffc5b4e2a
77 ["Debian/Ubuntu"] = "sudo apt-get install liblua5.1-socket2"; 77 ["Debian/Ubuntu"] = "sudo apt-get install liblua5.1-socket2";
78 ["luarocks"] = "luarocks install luasocket"; 78 ["luarocks"] = "luarocks install luasocket";
79 ["Source"] = "http://www.tecgraf.puc-rio.br/~diego/professional/luasocket/"; 79 ["Source"] = "http://www.tecgraf.puc-rio.br/~diego/professional/luasocket/";
80 }); 80 });
81 fatal = true; 81 fatal = true;
82 elseif not _G.socket then
83 -- COMPAT Code expecting LuaSocket to export as a global
84 _G.socket = socket;
82 end 85 end
83 86
84 local lfs, err = softreq "lfs" 87 local lfs, err = softreq "lfs"
85 if not lfs then 88 if not lfs then
86 missingdep("luafilesystem", { 89 missingdep("luafilesystem", {