From 86567f791926dc213ef94204bd82004d0e4e8538 Mon Sep 17 00:00:00 2001 From: hisham Date: Sun, 4 Oct 2009 01:45:44 +0000 Subject: document wip git-svn-id: http://luarocks.org/svn/luarocks/trunk@52 9ca3f7c1-7366-0410-b1a3-b5c78f85698c --- src/luarocks/add.lua | 3 +++ 1 file changed, 3 insertions(+) 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) if user then login_info = " --user="..user end if password then login_info = login_info .. " --password="..password end + -- TODO abstract away explicit 'wget' call fs.execute("wget -q -m -nd "..protocol.."://"..server_path..login_info) return local_cache, protocol, server_path, user, password end @@ -90,6 +91,8 @@ local function add_file_to_server(refresh, rockfile, server) if not server_path:match("/$") then server_path = server_path .. "/" end + + -- TODO abstract away explicit 'curl' call fs.execute("curl "..login_info.." -T '{manifest,index.html,"..dir.base_name(rockfile).."}' "..protocol.."://"..server_path) return true -- cgit v1.2.3-55-g6feb