update-luarocks: contact only the specified server

use --server-only instead of --server, I haven't run any testing but it
should be a bit faster as well as more deterministic.
This commit is contained in:
Matthieu Coudron 2019-06-04 18:43:28 +09:00
parent cf45c7857a
commit e967121053

View File

@ -78,6 +78,7 @@ function convert_pkg () {
lua_pkg_name="$2"
server="${3:+--server=$3}"
version="${4:-}"
server="${3:+--only-server=$3}"
echo "looking at $lua_pkg_name (version $version) from server [$server]" >&2
cmd="luarocks nix $server $lua_pkg_name $version"