aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)