aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2014-08-04 17:59:51 -0300
committerHisham Muhammad <hisham@gobolinux.org>2014-08-04 17:59:51 -0300
commit7374302cde00991cb0e9e0a7627a86985363049f (patch)
tree1b7d9ba9a856748207708136fcc819933ab1057d
parent5707a2423bffcd937b413df1488253833f5c99de (diff)
downloadluarocks-7374302cde00991cb0e9e0a7627a86985363049f.tar.gz
luarocks-7374302cde00991cb0e9e0a7627a86985363049f.tar.bz2
luarocks-7374302cde00991cb0e9e0a7627a86985363049f.zip
Enable API debug when in verbose mode.
-rw-r--r--src/luarocks/upload.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/luarocks/upload.lua b/src/luarocks/upload.lua
index 018e702d..d87313a4 100644
--- a/src/luarocks/upload.lua
+++ b/src/luarocks/upload.lua
@@ -4,6 +4,7 @@ local upload = {}
4local util = require("luarocks.util") 4local util = require("luarocks.util")
5local fetch = require("luarocks.fetch") 5local fetch = require("luarocks.fetch")
6local pack = require("luarocks.pack") 6local pack = require("luarocks.pack")
7local cfg = require("luarocks.cfg")
7local Api = require("luarocks.upload.api") 8local Api = require("luarocks.upload.api")
8 9
9upload.help_summary = "Upload a rockspec to the public rocks repository." 10upload.help_summary = "Upload a rockspec to the public rocks repository."
@@ -29,6 +30,9 @@ function upload.run(...)
29 if not api then 30 if not api then
30 return nil, err 31 return nil, err
31 end 32 end
33 if cfg.verbose then
34 api.debug = true
35 end
32 36
33 local rockspec, err, errcode = fetch.load_rockspec(fname) 37 local rockspec, err, errcode = fetch.load_rockspec(fname)
34 if err then 38 if err then