summaryrefslogtreecommitdiff
path: root/setup-apkrepos.in
AgeCommit message (Collapse)Author
2022-07-12remove space in community repo commentAlex Xu (Hello71)
consistent with other repos
2022-05-13setup-apkrepos: create dir if missing and add mockNatanael Copa
This allows us test it
2022-05-13setup-apkrepos: fix -h usage help textNatanael Copa
2022-03-16fix PREFIX in *.inNick Hanley
Commit ec0c7a7 changed the sed expression for PREFIX injection but forgot to update the scripts.
2021-11-26setup-apkrepos: fix accepting optionsFurkan Mustafa
`-c` option was (mistakenly?) omitted in `getopts` call. Causing following error; # setup-apkrepos -1 -c Illegal option -c Added mirror dl-cdn.alpinelinux.org Updating repository indexes... done. Tested this change locally and it works as expected. Signed-off-by: Furkan Mustafa <furkan@rainlab.co.jp>
2021-11-16setup-apkrepos: simplify enable communityNatanael Copa
2021-11-16setup-apkrepos: Support enabling community repoLukas Bestle
2021-11-16setup-apkrepos: fix wget retrying 20 timesArtem Zhurikhin
2021-01-08setup-apkrepos: minor code cleanupNatanael Copa
use `ask` for consistency allow set default answer via env var APKREPOS_DEFAULT_ANSWER
2021-01-06setup-apkrepos: fix two digit selectionNatanael Copa
fixes https://gitlab.alpinelinux.org/alpine/alpine-conf/-/issues/10461 Thanks to Timo Ketola for the fix.
2020-05-28setup-apkrepos: try fetching the mirror list repeatedly while promptingDaniel Lublin
fixes https://gitlab.alpinelinux.org/alpine/alpine-conf/issues/10446
2019-12-11setup-apkrepos: use cdn as default answerNatanael Copa
use '1', which should be dl-cdn, as the default answer
2018-06-12setup-apkrepos: Allow the script to pick a server with 0.00sec download time andKatie Holly
replaced the awk script with tee-sort-head-cut magic
2018-04-11setup-apkrepos: fetch mirrors from mirrors.a.oCarlo Landmeter
2018-04-11setup-apkrepos: Fix some typosNHellFire
2017-11-30setup-apkrepos: prevent adding empty mirrorNatanael Copa
fixes #8108
2017-05-19setup-apkrepos: add option to add first mirror on the listNatanael Copa
first in the list is normally a cdn
2017-01-24setup-apkrepos: use wget --spiderNatanael Copa
the wget -s option was removed in busybox 1.26 https://git.busybox.net/busybox/commit/?id=2972e2c4acb9c46a8cc05c857acac2b3d439bf69 ref #6683
2016-11-10setup-apkrepos: dont reset http_proxyNatanael Copa
it is likely needed if it is set. ref #6219
2016-11-02indent heredocs and replace echos with heredoc where appropriateJakub Jirutka
2016-11-02replace deprecated `...` syntax with $(...) in shell scriptsJakub Jirutka
2016-11-02fix mixed tabs & spaces and surplus empty lines at EOFJakub Jirutka
2016-02-09setup-apkrepos: fix typoTed Trask
2016-02-03setup-apkrepos: add community repo to repositories fileTed Trask
2015-12-15setup-apkrepos: use wget spider mode to find fastest mirrorNatanael Copa
we also try warm up the dns cache before we measure the time
2015-06-16setup-apkrepos: fix speed test of mirrorsNatanael Copa
Some mirrors error on double / in path. ref #4365
2015-05-14setup-apkrepos: fix excluding faulty mirrorsNatanael Copa
This is a fix of commit 3f769dc (setup-apkrepos: exclude faulty mirrors from detection) ref #4017
2015-04-10setup-apkrepos: exclude faulty mirrors from detectionNatanael Copa
ref #4017
2015-04-07setup-apkrepos: add -f for just-add-fastest mirrorNatanael Copa
fixes #4017
2014-07-01setup-apkrepos: allow specify the repos from cmdlineNatanael Copa
ref #2862
2014-05-29setup-apkrepos: fix cleanupNatanael Copa
we need uninstall .setup*
2014-05-27setup-apkrepos: force install virtual packageNatanael Copa
it is tmpfs and we know it will be removed on reboot. Infact, we want it to be removed on reboot.
2014-04-23setup-apkrepos: improve $ROOT supportNatanael Copa
2014-04-23fix permissionsNatanael Copa
2013-07-03various: use long-form apk optionsDubiousjim
2013-06-11setup-apkrepos: add commented edge/main and edge/testing for stableNatanael Copa
2013-06-11setup-apkrepos: remove dead codeNatanael Copa
we no longer use RELEASES
2013-06-11setup-apkrepos: refactor mirror timingNatanael Copa
- use apk update to test the download speed - print the times - use /proc/uptime instead of 'time'
2013-03-01main/setup-apkrepos: use edge repo for *_alpha* releasesNatanael Copa
2012-05-27setup-apkrepos: do not add empty mirrorsNatanael Copa
ref #1073
2011-09-13setup-apkrepos: only ask for repository one timeNatanael Copa
2011-08-06setup-apkrepos: add option to just add random mirror and don't prompt anymoreJeff Bilyk
2011-05-03setup-apkrepos: avoid double // in urlNatanael Copa
2011-03-03setup-apkrepos: install alpine-mirrors if neededNatanael Copa
2011-03-03setup-apkrepos: simplify. try not ask more than absolutely neededNatanael Copa
- 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
2011-03-02setup-apkrepos: always update the index, best effortNatanael Copa
2011-03-02setup-apkrepos: make show mirror list a separate functionNatanael Copa
2011-03-01setup-apkrepos: simplification of apk update error handlingNatanael Copa
apk update -q will output error if any and be quiet otherwise. we dont need extra logic to fish out error messages.
2011-03-01setup-apkrepos: minor simplificationNatanael Copa
We only need the hostname after we found the mirror we want
2011-03-01setup-apkrepos: minor cleanup. use $(( ... )) instead of `expr ...`Natanael Copa
saves a fork