aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThijs Schreijer <thijs@thijsschreijer.nl>2013-11-12 20:37:17 +0100
committerThijs Schreijer <thijs@thijsschreijer.nl>2013-11-12 20:37:17 +0100
commit4e4e1d275971ead2f35fe20a14615558d0d63bca (patch)
treed8c0ef48a856ca6cc7dc9d81ddb0248489529b72 /src
parentf0f3f13d32a4de05cc5d0f4e2a62b600fbce09c7 (diff)
parentf06853ce8818a1b337b68fec710c8180e37e0b68 (diff)
downloadluarocks-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-xsrc/bin/luarocks1
-rwxr-xr-xsrc/bin/luarocks-admin1
-rw-r--r--src/luarocks/cfg.lua6
-rw-r--r--src/luarocks/fs/win32/tools.lua2
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
3local loader = require("luarocks.loader")
3local command_line = require("luarocks.command_line") 4local command_line = require("luarocks.command_line")
4 5
5program_description = "LuaRocks main command-line interface" 6program_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
3local loader = require("luarocks.loader")
3local command_line = require("luarocks.command_line") 4local command_line = require("luarocks.command_line")
4 5
5program_description = "LuaRocks repository administration interface" 6program_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, ";")
494end 494end
495 495
496do
497 local new_path, new_cpath = package_paths()
498 package.path = new_path..";"..package.path
499 package.cpath = new_cpath..";"..package.cpath
500end
501
502function which_config() 496function 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
504end 498end
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
42function current_dir() 42function 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