diff options
| author | Hisham Muhammad <hisham@gobolinux.org> | 2019-06-06 12:03:45 -0300 |
|---|---|---|
| committer | Hisham Muhammad <hisham@gobolinux.org> | 2019-06-06 14:11:02 -0300 |
| commit | f82627800d09755412bc50cbf9f1f964d1b2c5be (patch) | |
| tree | 4987b82391d8e1b99873e9e3df4b20dbcecd7610 | |
| parent | ead55bc1530914e18b48f80b5d594ffca6306d21 (diff) | |
| download | luarocks-f82627800d09755412bc50cbf9f1f964d1b2c5be.tar.gz luarocks-f82627800d09755412bc50cbf9f1f964d1b2c5be.tar.bz2 luarocks-f82627800d09755412bc50cbf9f1f964d1b2c5be.zip | |
Enable use of lua-bz2
Fixes #1005.
| -rw-r--r-- | spec/util/test_env.lua | 4 | ||||
| -rw-r--r-- | src/luarocks/fs/lua.lua | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/spec/util/test_env.lua b/spec/util/test_env.lua index 9ff0a470..e3aad1b1 100644 --- a/spec/util/test_env.lua +++ b/spec/util/test_env.lua | |||
| @@ -650,6 +650,7 @@ function test_env.setup_specs(extra_rocks) | |||
| 650 | require("spec.util.git_repo") | 650 | require("spec.util.git_repo") |
| 651 | 651 | ||
| 652 | package.path = test_env.env_variables.LUA_PATH | 652 | package.path = test_env.env_variables.LUA_PATH |
| 653 | package.cpath = test_env.env_variables.LUA_CPATH | ||
| 653 | 654 | ||
| 654 | test_env.platform = execute_output(test_env.testing_paths.lua .. " -e \"cfg = require('luarocks.core.cfg'); cfg.init(); print(cfg.arch)\"", false, test_env.env_variables) | 655 | test_env.platform = execute_output(test_env.testing_paths.lua .. " -e \"cfg = require('luarocks.core.cfg'); cfg.init(); print(cfg.arch)\"", false, test_env.env_variables) |
| 655 | test_env.wrapper_extension = test_env.TEST_TARGET_OS == "windows" and ".bat" or "" | 656 | test_env.wrapper_extension = test_env.TEST_TARGET_OS == "windows" and ".bat" or "" |
| @@ -918,7 +919,8 @@ function test_env.main() | |||
| 918 | table.insert(urls, "/md5-1.2-1.src.rock") | 919 | table.insert(urls, "/md5-1.2-1.src.rock") |
| 919 | --table.insert(urls, "/lzlib-0.4.1.53-1.src.rock") | 920 | --table.insert(urls, "/lzlib-0.4.1.53-1.src.rock") |
| 920 | table.insert(urls, "/lua-zlib-1.2-0.src.rock") | 921 | table.insert(urls, "/lua-zlib-1.2-0.src.rock") |
| 921 | rocks = {"luafilesystem", "luasocket", "md5", "lua-zlib"} | 922 | table.insert(urls, "/lua-bz2-0.1.0-1.src.rock") |
| 923 | rocks = {"luafilesystem", "luasocket", "md5", "lua-zlib", "lua-bz2"} | ||
| 922 | if test_env.TEST_TARGET_OS ~= "windows" then | 924 | if test_env.TEST_TARGET_OS ~= "windows" then |
| 923 | table.insert(urls, "/luaposix-33.2.1-1.src.rock") | 925 | table.insert(urls, "/luaposix-33.2.1-1.src.rock") |
| 924 | table.insert(rocks, "luaposix") | 926 | table.insert(rocks, "luaposix") |
diff --git a/src/luarocks/fs/lua.lua b/src/luarocks/fs/lua.lua index b589654f..56583676 100644 --- a/src/luarocks/fs/lua.lua +++ b/src/luarocks/fs/lua.lua | |||
| @@ -17,7 +17,7 @@ if cfg.fs_use_modules then | |||
| 17 | socket_ok, http = pcall(require, "socket.http") | 17 | socket_ok, http = pcall(require, "socket.http") |
| 18 | _, ftp = pcall(require, "socket.ftp") | 18 | _, ftp = pcall(require, "socket.ftp") |
| 19 | zip_ok, zip = pcall(require, "luarocks.tools.zip") | 19 | zip_ok, zip = pcall(require, "luarocks.tools.zip") |
| 20 | bz2_ok, bz2 = pcall(require, "luarocks.tools.bzip2") | 20 | bz2_ok, bz2 = pcall(require, "bz2") |
| 21 | lfs_ok, lfs = pcall(require, "lfs") | 21 | lfs_ok, lfs = pcall(require, "lfs") |
| 22 | md5_ok, md5 = pcall(require, "md5") | 22 | md5_ok, md5 = pcall(require, "md5") |
| 23 | posix_ok, posix = pcall(require, "posix") | 23 | posix_ok, posix = pcall(require, "posix") |
