summaryrefslogtreecommitdiff
path: root/setup-apkrepos.in
AgeCommit message (Collapse)Author
2023-01-24setup-apkrepos: suppress stderrWilliam Wilhelm
2023-01-24setup-apkrepos: clarify get_alpine_release behaviourWilliam Wilhelm
2023-01-24setup-apkrepos: version detection for edgeWilliam Wilhelm
2023-01-24setup-*: use fake apk instead of $MOCK apkNatanael Copa
2023-01-24typo: setup-apkreposWilliam Wilhelm
2022-11-21setup-apkrepos: fix random index to be POSIX compatibleNatanael Copa
$RANDOM is not in POSIX.
2022-11-21setup-apkrepos: handle network errorsNatanael Copa
2022-11-21setup-apkrepos: add test for fastest mirror (-f)Natanael Copa
2022-11-21setup-apkrepos: avoid run interactive with -r|-f|-1Natanael Copa
Avoid run interactive if the non-interactive modes fails
2022-11-21setup-apkrepos: make fastest/first/random options exclusiveNatanael Copa
Makes no sense to combine them
2022-11-21setup-apkrepos: fix mirror countingNatanael Copa
when piping the mirror list to `more` the mirror_count is set in a subshell and will end up unset. fixes error when selecting random mirror: /sbin/setup-apkrepos: line 31: arithmetic syntax error fixes commit 860b7271232a (APK Repo Setup)
2022-11-06always quote vars in 'local' assignmentJakub Jirutka
Some shells may apply word splitting after expanding variable in `local a=$1`. I know just about yash, but since `local` is supposed to be a builtin *command*, the "correct" behaviour of common shells is actually a special case for `local` - it doesn't apply for other commands. See https://osdn.net/projects/yash/ticket/46041.
2022-11-05replace 'echo -n' and 'echo -e' with printfJakub Jirutka
'echo -n' and 'echo -e' are not portable, not all commonly used shells support both of them (in the same way). 'echo -e' is not even defined in POSIX. https://pubs.opengroup.org/onlinepubs/009604599/utilities/echo.html: > New applications are encouraged to use printf instead of echo. > ... > Conforming applications that wish to do prompting without <newline>s > or that could possibly be expecting to echo a -n, should use the > printf utility derived from the Ninth Edition system.
2022-10-17APK Repo SetupAaron Mason
- Paginate mirrors list if it requires more than one screenful to display
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