April . 2017 v4.1.0-dev
v4.1.0-dev
- Simple API: packagers are the intended target @artoo
- add a prefix to be used for files for example
$MNT
/etc/pacman-mirrors.conf - read/write branch in pacman-mirrors
- write protocols in pacman-mirrors.conf
- add a prefix to be used for files for example
- Protocols option in pacman-mirrors.conf
- Control which protocols pacman-mirrors can use
- Protocols are used in the order in which they appear
- available: http,https,ftp
- example:
Protocols = http,https
- example:
Protocols = https,http
- unmentioned protocols are not used nor ranked
- General improvement if a mirror offers several protocols
- protocols are reverse sorted
- ssl enabled mirrors will be prioritized
- minor bugfixes
~ >>> pacman-mirrors -h usage: pacman-mirrors [-h] [-g] [-m {rank,random}] [-b {stable,testing,unstable}] [-c COUNTRY [COUNTRY ...] | --geoip] [-d PATH] [-o FILE] [-t SECONDS] [--no-update] [-i] [-v] [-q] [-f DIGIT] [-l] [--default] [-a] [--get-branch | --set-branch] [--prefix PREFIX] [--proto PROTO [PROTO ...]] optional arguments: -g, --generate Generate mirrorlist -m, --method {rank,random} Generation method -b, --branch {stable,testing,unstable} Branch name -c, --country COUNTRY [COUNTRY ...] Comma separated list of countries, from which mirrors will be used --geoip Get current country using geolocation. Ignored if '-c/--country' is supplied -d, --mirror_dir PATH Mirrors list path -o, --output FILE Output file -t, --timeout SECONDS Maximum waiting time for server response --no-update Don't generate mirrorlist if 'NoUpdate = True' in the configuration file -i, --interactive Generate custom mirrorlist -v, --version Print the pacman-mirrors version -q, --quiet Quiet mode - less verbose output -f, --fasttrack DIGIT A quick mirrorlist. Overrides -c -i -m --geoip -l, --list List all available countries --default Load default mirror file API: -a, --api [--prefix] [--protocols] [{-b }--set- branch|--get-branch] --get-branch get-branch --set-branch set-branch --prefix PREFIX {'$MNT' | '/some/path'} --proto PROTO [PROTO ...] {none | http https ftp ftps}