From f6cca56617c2b3e5ac6aa46c285c2c2ad89fea58 Mon Sep 17 00:00:00 2001 From: hisham Date: Mon, 9 Nov 2009 17:54:46 +0000 Subject: Try not to be fooled by cacheing proxies git-svn-id: http://luarocks.org/svn/luarocks/trunk@121 9ca3f7c1-7366-0410-b1a3-b5c78f85698c --- src/luarocks/cache.lua | 2 +- src/luarocks/fs/unix/tools.lua | 2 +- src/luarocks/fs/win32/tools.lua | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/luarocks/cache.lua b/src/luarocks/cache.lua index 31594a7d..8ee88df9 100644 --- a/src/luarocks/cache.lua +++ b/src/luarocks/cache.lua @@ -47,7 +47,7 @@ function refresh_local_cache(server, user, password) if password then login_info = login_info .. " --password="..password end -- TODO abstract away explicit 'wget' call - local ok = fs.execute("wget -q -m -np -nd "..protocol.."://"..server_path..login_info) + local ok = fs.execute("wget --no-cache -q -m -np -nd "..protocol.."://"..server_path..login_info) if not ok then return nil, "Failed downloading cache." end diff --git a/src/luarocks/fs/unix/tools.lua b/src/luarocks/fs/unix/tools.lua index 48ce1383..e26595d0 100644 --- a/src/luarocks/fs/unix/tools.lua +++ b/src/luarocks/fs/unix/tools.lua @@ -231,7 +231,7 @@ function download(url, filename) assert(type(filename) == "string" or not filename) if cfg.downloader == "wget" then - local wget_cmd = "wget --user-agent="..cfg.user_agent.." --quiet --continue " + local wget_cmd = "wget --no-cache --user-agent="..cfg.user_agent.." --quiet --continue " if filename then return fs.execute(wget_cmd.." --output-document ", filename, url) else diff --git a/src/luarocks/fs/win32/tools.lua b/src/luarocks/fs/win32/tools.lua index 9f7b829b..60578d8d 100644 --- a/src/luarocks/fs/win32/tools.lua +++ b/src/luarocks/fs/win32/tools.lua @@ -171,7 +171,7 @@ end function download(url, filename) assert(type(url) == "string") assert(type(filename) == "string" or not filename) - local wget_cmd = "wget --user-agent="..cfg.user_agent.." --quiet --continue " + local wget_cmd = "wget --no-cache --user-agent="..cfg.user_agent.." --quiet --continue " if filename then return fs.execute(wget_cmd.." --output-document ", filename, url) -- cgit v1.2.3-55-g6feb