diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2013-11-12 16:45:24 -0200 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2013-11-12 16:45:24 -0200 |
commit | 8863788a986e11d564c98af0de89def47c83193c (patch) | |
tree | 6b163bd7cd11a7d634a126baf7b43d5949f60607 /src | |
parent | 143cc28429bae0ba72c08433e21aacdf3723d72f (diff) | |
download | luarocks-8863788a986e11d564c98af0de89def47c83193c.tar.gz luarocks-8863788a986e11d564c98af0de89def47c83193c.tar.bz2 luarocks-8863788a986e11d564c98af0de89def47c83193c.zip |
Merge changes proposed by @siffiejoe in #172.
(Sorry about the clumsiness of not doing a proper merge.)
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 |
3 files changed, 2 insertions, 6 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 |