2
2
--- Module implementing the luarocks-admin "refresh_cache" command.
5
7
local util = require("luarocks.util")
6
8
local cfg = require("luarocks.cfg")
7
9
local cache = require("luarocks.cache")
12
14
The flag --from indicates which server to use.
13
15
If not given, the default server set in the upload_server variable
14
16
from the configuration file is used instead.
18
20
local flags = util.parse_flags(...)
19
21
local server, upload_server = cache.get_upload_server(flags["server"])
20
22
if not server then return nil, upload_server end