Skip to content

Add random flag#87

Open
kwavnet wants to merge 3 commits intojblakeman:masterfrom
kwavnet:feat/random-select
Open

Add random flag#87
kwavnet wants to merge 3 commits intojblakeman:masterfrom
kwavnet:feat/random-select

Conversation

@kwavnet
Copy link

@kwavnet kwavnet commented May 17, 2023

to randomly select a mirror from the determined list. This should help working around the fact, that even though a mirror is ranked highest it could be still having temporary difficulties.
This can be used in CI systems where interactive --choose flag is not an option

kwavnet added 3 commits May 17, 2023 07:43
to randomly select a mirror from the determined list.
This should help working around the fact, that even though
a mirror is ranked highest it could be still having temporary
difficulties.
This can be used in CI systems where interactive --choose
flag is not an option

Signed-off-by: Konrad Weihmann <konrad.weihmann@avnet.eu>
latest github runner images only come with deb mirror+file
scheme style information, thus the parse here fails to extract
the main URL.
Instead of raising an exception, let's just hardcode the
http://archive.ubuntu.com/ubuntu

Signed-off-by: Konrad Weihmann <konrad.weihmann@avnet.eu>
if environment var APT_CONFIGPATH is set,
so we can point to a not hardcoded path instead

Signed-off-by: Konrad Weihmann <konrad.weihmann@avnet.eu>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments