forked from Mirror/pmbootstrap
pmbootstrap init: Add mirror choice (MR 2035)
Allows user to choose one of the mirrors from https://mirrors.postmarketos.org. Example: [1] Mirror 1 (Location 1) [2] Mirror 2 (Location 2) [3] Mirror 3 (Location 3) Select a mirror [1]: 2 Co-Authored-By: Alexey Min <alexey.min@gmail.com>
This commit is contained in:
parent
c5bd07e3ae
commit
5c1da79634
4 changed files with 82 additions and 5 deletions
|
@ -79,7 +79,9 @@ def fix_mirrors_postmarketos(args):
|
|||
subparsers: <https://bugs.python.org/issue9338> """
|
||||
# -mp not specified: use default mirrors
|
||||
if not args.mirrors_postmarketos:
|
||||
args.mirrors_postmarketos = pmb.config.defaults["mirrors_postmarketos"]
|
||||
cfg = pmb.config.load(args)
|
||||
args.mirrors_postmarketos = \
|
||||
cfg["pmbootstrap"]["mirrors_postmarketos"].split(",")
|
||||
|
||||
# -mp="": use no postmarketOS mirrors (build everything locally)
|
||||
if args.mirrors_postmarketos == [""]:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue