diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2019-03-14 21:21:30 -0300 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2019-03-14 23:19:39 -0300 |
commit | 1219cb353ead5f88b2417b3c7d86a72a4bd42a2c (patch) | |
tree | f2876e0866e93723bb3b528ad7357aabad9f72db /GNUmakefile | |
parent | 3855e599dd9f7da7d1f1956d7523279146f9bd76 (diff) | |
download | luarocks-1219cb353ead5f88b2417b3c7d86a72a4bd42a2c.tar.gz luarocks-1219cb353ead5f88b2417b3c7d86a72a4bd42a2c.tar.bz2 luarocks-1219cb353ead5f88b2417b3c7d86a72a4bd42a2c.zip |
Do not register system tree if installing to ~/.luarocks
See https://github.com/luarocks/luarocks/issues/952#issuecomment-449966779
Diffstat (limited to 'GNUmakefile')
-rw-r--r-- | GNUmakefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/GNUmakefile b/GNUmakefile index 60f08dc8..4e814740 100644 --- a/GNUmakefile +++ b/GNUmakefile | |||
@@ -35,7 +35,7 @@ $(builddir)/config-$(LUA_VERSION).lua: config.unix | |||
35 | @printf -- '-- LuaRocks configuration\n\n'\ | 35 | @printf -- '-- LuaRocks configuration\n\n'\ |
36 | 'rocks_trees = {\n'\ | 36 | 'rocks_trees = {\n'\ |
37 | ' { name = "user", root = home .. "/.luarocks" };\n'\ | 37 | ' { name = "user", root = home .. "/.luarocks" };\n'\ |
38 | ' { name = "system", root = "'"$(rocks_tree)"'" };\n'\ | 38 | "$$([ "$(rocks_tree)" != "$(HOME)/.luarocks" ] && printf ' { name = "system", root = "'"$(rocks_tree)"'" };\\n')"\ |
39 | '}\n'\ | 39 | '}\n'\ |
40 | "$$([ -n "$(LUA_INTERPRETER)" ] && printf 'lua_interpreter = "%s";\\n' "$(LUA_INTERPRETER)")"\ | 40 | "$$([ -n "$(LUA_INTERPRETER)" ] && printf 'lua_interpreter = "%s";\\n' "$(LUA_INTERPRETER)")"\ |
41 | 'variables = {\n'\ | 41 | 'variables = {\n'\ |