aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorhisham <hisham@9ca3f7c1-7366-0410-b1a3-b5c78f85698c>2009-11-09 17:54:46 +0000
committerhisham <hisham@9ca3f7c1-7366-0410-b1a3-b5c78f85698c>2009-11-09 17:54:46 +0000
commitf6cca56617c2b3e5ac6aa46c285c2c2ad89fea58 (patch)
treeb6241d41fa40c872e42b60f8501b51acd72cade0 /src
parenta8c7b8a525a3b583441c856696ad09653975d52c (diff)
downloadluarocks-f6cca56617c2b3e5ac6aa46c285c2c2ad89fea58.tar.gz
luarocks-f6cca56617c2b3e5ac6aa46c285c2c2ad89fea58.tar.bz2
luarocks-f6cca56617c2b3e5ac6aa46c285c2c2ad89fea58.zip
Try not to be fooled by cacheing proxies
git-svn-id: http://luarocks.org/svn/luarocks/trunk@121 9ca3f7c1-7366-0410-b1a3-b5c78f85698c
Diffstat (limited to 'src')
-rw-r--r--src/luarocks/cache.lua2
-rw-r--r--src/luarocks/fs/unix/tools.lua2
-rw-r--r--src/luarocks/fs/win32/tools.lua2
3 files changed, 3 insertions, 3 deletions
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)
47 if password then login_info = login_info .. " --password="..password end 47 if password then login_info = login_info .. " --password="..password end
48 48
49 -- TODO abstract away explicit 'wget' call 49 -- TODO abstract away explicit 'wget' call
50 local ok = fs.execute("wget -q -m -np -nd "..protocol.."://"..server_path..login_info) 50 local ok = fs.execute("wget --no-cache -q -m -np -nd "..protocol.."://"..server_path..login_info)
51 if not ok then 51 if not ok then
52 return nil, "Failed downloading cache." 52 return nil, "Failed downloading cache."
53 end 53 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)
231 assert(type(filename) == "string" or not filename) 231 assert(type(filename) == "string" or not filename)
232 232
233 if cfg.downloader == "wget" then 233 if cfg.downloader == "wget" then
234 local wget_cmd = "wget --user-agent="..cfg.user_agent.." --quiet --continue " 234 local wget_cmd = "wget --no-cache --user-agent="..cfg.user_agent.." --quiet --continue "
235 if filename then 235 if filename then
236 return fs.execute(wget_cmd.." --output-document ", filename, url) 236 return fs.execute(wget_cmd.." --output-document ", filename, url)
237 else 237 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
171function download(url, filename) 171function download(url, filename)
172 assert(type(url) == "string") 172 assert(type(url) == "string")
173 assert(type(filename) == "string" or not filename) 173 assert(type(filename) == "string" or not filename)
174 local wget_cmd = "wget --user-agent="..cfg.user_agent.." --quiet --continue " 174 local wget_cmd = "wget --no-cache --user-agent="..cfg.user_agent.." --quiet --continue "
175 175
176 if filename then 176 if filename then
177 return fs.execute(wget_cmd.." --output-document ", filename, url) 177 return fs.execute(wget_cmd.." --output-document ", filename, url)