Add option to use mirror status
Using the mirror status when updating mirrors ranks them in order of best synchronized to worst.
This commit is contained in:
parent
bb87e64082
commit
a5d3cbbe2c
1 changed files with 3 additions and 1 deletions
|
@ -5,6 +5,7 @@ url="https://www.archlinux.org/mirrorlist"
|
|||
countries=("BE" "NL")
|
||||
protocols=("http" "https")
|
||||
ip_versions=(4)
|
||||
use_mirror_status="on"
|
||||
dest="/etc/pacman.d/mirrorlist"
|
||||
|
||||
# Functions
|
||||
|
@ -30,8 +31,9 @@ function make-url ()
|
|||
local countryparams=$(urlify country ${countries[@]})
|
||||
local protocolparams=$(urlify protocol ${protocols[@]})
|
||||
local ipparams=$(urlify ip_version ${ip_versions[@]})
|
||||
local statusparams=$(urlify use_mirror_status $use_mirror_status)
|
||||
|
||||
echo "${url}/?${countryparams}&${protocolparams}&${ipparams}"
|
||||
echo "${url}/?${countryparams}&${protocolparams}&${ipparams}&${statusparams}"
|
||||
}
|
||||
|
||||
# Load config file
|
||||
|
|
Loading…
Reference in a new issue