diff options
author | Thijs Schreijer <thijs@thijsschreijer.nl> | 2013-11-12 20:37:17 +0100 |
---|---|---|
committer | Thijs Schreijer <thijs@thijsschreijer.nl> | 2013-11-12 20:37:17 +0100 |
commit | 4e4e1d275971ead2f35fe20a14615558d0d63bca (patch) | |
tree | d8c0ef48a856ca6cc7dc9d81ddb0248489529b72 /src | |
parent | f0f3f13d32a4de05cc5d0f4e2a62b600fbce09c7 (diff) | |
parent | f06853ce8818a1b337b68fec710c8180e37e0b68 (diff) | |
download | luarocks-4e4e1d275971ead2f35fe20a14615558d0d63bca.tar.gz luarocks-4e4e1d275971ead2f35fe20a14615558d0d63bca.tar.bz2 luarocks-4e4e1d275971ead2f35fe20a14615558d0d63bca.zip |
Merge branch 'master' of github.com:Tieske/luarocks into win_install_checkpath
Diffstat (limited to 'src')
-rwxr-xr-x | src/bin/luarocks | 1 | ||||
-rwxr-xr-x | src/bin/luarocks-admin | 1 | ||||
-rw-r--r-- | src/luarocks/cfg.lua | 6 | ||||
-rw-r--r-- | src/luarocks/fs/win32/tools.lua | 2 |
4 files changed, 3 insertions, 7 deletions
diff --git a/src/bin/luarocks b/src/bin/luarocks index e28b17b8..6ab27fa3 100755 --- a/src/bin/luarocks +++ b/src/bin/luarocks | |||
@@ -1,5 +1,6 @@ | |||
1 | #!/usr/bin/env lua | 1 | #!/usr/bin/env lua |
2 | 2 | ||
3 | local loader = require("luarocks.loader") | ||
3 | local command_line = require("luarocks.command_line") | 4 | local command_line = require("luarocks.command_line") |
4 | 5 | ||
5 | program_description = "LuaRocks main command-line interface" | 6 | program_description = "LuaRocks main command-line interface" |
diff --git a/src/bin/luarocks-admin b/src/bin/luarocks-admin index 4c5613ca..983dda87 100755 --- a/src/bin/luarocks-admin +++ b/src/bin/luarocks-admin | |||
@@ -1,5 +1,6 @@ | |||
1 | #!/usr/bin/env lua | 1 | #!/usr/bin/env lua |
2 | 2 | ||
3 | local loader = require("luarocks.loader") | ||
3 | local command_line = require("luarocks.command_line") | 4 | local command_line = require("luarocks.command_line") |
4 | 5 | ||
5 | program_description = "LuaRocks repository administration interface" | 6 | program_description = "LuaRocks repository administration interface" |
diff --git a/src/luarocks/cfg.lua b/src/luarocks/cfg.lua index 86d7d585..e3d924fb 100644 --- a/src/luarocks/cfg.lua +++ b/src/luarocks/cfg.lua | |||
@@ -493,12 +493,6 @@ function package_paths() | |||
493 | return table.concat(new_path, ";"), table.concat(new_cpath, ";") | 493 | return table.concat(new_path, ";"), table.concat(new_cpath, ";") |
494 | end | 494 | end |
495 | 495 | ||
496 | do | ||
497 | local new_path, new_cpath = package_paths() | ||
498 | package.path = new_path..";"..package.path | ||
499 | package.cpath = new_cpath..";"..package.cpath | ||
500 | end | ||
501 | |||
502 | function which_config() | 496 | function which_config() |
503 | return sys_config_file, sys_config_ok, home_config_file, home_config_ok | 497 | return sys_config_file, sys_config_ok, home_config_file, home_config_ok |
504 | end | 498 | end |
diff --git a/src/luarocks/fs/win32/tools.lua b/src/luarocks/fs/win32/tools.lua index e08de97a..979aaff4 100644 --- a/src/luarocks/fs/win32/tools.lua +++ b/src/luarocks/fs/win32/tools.lua | |||
@@ -42,7 +42,7 @@ end | |||
42 | function current_dir() | 42 | function current_dir() |
43 | local current = cfg.cache_pwd | 43 | local current = cfg.cache_pwd |
44 | if not current then | 44 | if not current then |
45 | local pipe = io.popen(vars.PWD) | 45 | local pipe = io.popen(fs.Q(vars.PWD)) |
46 | current = pipe:read("*l") | 46 | current = pipe:read("*l") |
47 | pipe:close() | 47 | pipe:close() |
48 | cfg.cache_pwd = current | 48 | cfg.cache_pwd = current |