Age | Commit message (Collapse) | Author |
|
|
|
- use alpine version from /etc/alpine-release
- dont ask for testing repo, but just add it commented
- give user option to edit file manually
- give user opptortunity to add several mirrors
- first time default is 'detect fastest', second default is 'done'
- only update apk index if anything changed
|
|
|
|
|
|
apk update -q will output error if any and be quiet otherwise.
we dont need extra logic to fish out error messages.
|
|
We only need the hostname after we found the mirror we want
|
|
saves a fork
|
|
Might be handy if we want count differently, strip comments etc in future
|
|
use get_hostname_from_url function to make it more readable
|
|
|
|
- allow override MIRRORS via env var
- don't error if MIRRORS.txt is missing
- other minor cleanups
|
|
Use case ... in instead of if ... elif ...
|
|
nslookup statement needed bind-tools version of nslookup, not busybox
|
|
|
|
Changelog:
- Now selects the fastest mirror (albeit somewhat crudely);
- Updates existing main and testing repos to use the fastest mirror;
- If the main repository isn't listed, it will be added;
- If the testing repository isn't listed, it will be added - commented out;
- Despite these changes, it does not clobber other repository entries;
- Will output errors and warnings from 'apk update';
|
|
|
|
automatically retrieve release
Retrieve MIRRORS.txt and get mirror from there, automatically choose release if possible, and if not prompt for desired release
|
|
ref # 487
|