diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2010-09-23 15:47:02 -0300 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2010-09-23 15:47:02 -0300 |
commit | d0d848ad3bd364993e4c8f933c14075f4c91b126 (patch) | |
tree | e1ed286a678030fa728e6dc043aab118e28d958c | |
parent | dfb1de8faa236740e79d3d55c55c6535edda43cb (diff) | |
download | luarocks-d0d848ad3bd364993e4c8f933c14075f4c91b126.tar.gz luarocks-d0d848ad3bd364993e4c8f933c14075f4c91b126.tar.bz2 luarocks-d0d848ad3bd364993e4c8f933c14075f4c91b126.zip |
New option for ~/.luarocks/config.lua: "local_by_default", which
implies --local in all commands (useful for my test setup here).
-rw-r--r-- | src/luarocks/command_line.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/luarocks/command_line.lua b/src/luarocks/command_line.lua index 71ded87d..8b74a65f 100644 --- a/src/luarocks/command_line.lua +++ b/src/luarocks/command_line.lua | |||
@@ -88,6 +88,10 @@ function run_command(...) | |||
88 | end | 88 | end |
89 | command = command:gsub("-", "_") | 89 | command = command:gsub("-", "_") |
90 | 90 | ||
91 | if cfg.local_by_default then | ||
92 | flags["local"] = true | ||
93 | end | ||
94 | |||
91 | if flags["to"] then | 95 | if flags["to"] then |
92 | if flags["to"] == true then | 96 | if flags["to"] == true then |
93 | die("Argument error: use --to=<path>") | 97 | die("Argument error: use --to=<path>") |