diff options
-rw-r--r-- | src/luarocks/add.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/luarocks/add.lua b/src/luarocks/add.lua index 457852be..66afe1f3 100644 --- a/src/luarocks/add.lua +++ b/src/luarocks/add.lua | |||
@@ -58,6 +58,7 @@ local function refresh_local_cache(server, user, password) | |||
58 | if user then login_info = " --user="..user end | 58 | if user then login_info = " --user="..user end |
59 | if password then login_info = login_info .. " --password="..password end | 59 | if password then login_info = login_info .. " --password="..password end |
60 | 60 | ||
61 | -- TODO abstract away explicit 'wget' call | ||
61 | fs.execute("wget -q -m -nd "..protocol.."://"..server_path..login_info) | 62 | fs.execute("wget -q -m -nd "..protocol.."://"..server_path..login_info) |
62 | return local_cache, protocol, server_path, user, password | 63 | return local_cache, protocol, server_path, user, password |
63 | end | 64 | end |
@@ -90,6 +91,8 @@ local function add_file_to_server(refresh, rockfile, server) | |||
90 | if not server_path:match("/$") then | 91 | if not server_path:match("/$") then |
91 | server_path = server_path .. "/" | 92 | server_path = server_path .. "/" |
92 | end | 93 | end |
94 | |||
95 | -- TODO abstract away explicit 'curl' call | ||
93 | fs.execute("curl "..login_info.." -T '{manifest,index.html,"..dir.base_name(rockfile).."}' "..protocol.."://"..server_path) | 96 | fs.execute("curl "..login_info.." -T '{manifest,index.html,"..dir.base_name(rockfile).."}' "..protocol.."://"..server_path) |
94 | 97 | ||
95 | return true | 98 | return true |