Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Hvornum <anton.feeds+github@gmail.com>2021-04-14 12:08:37 +0200
committerGitHub <noreply@github.com>2021-04-14 12:08:37 +0200
commit5b3a1221414a60676eb8622d033a6fadc1661411 (patch)
treeed1fbe414766be2424a90cfcc0031517fafb6545
parent99fb1304ea4bcf2744b06abdd4b747b686aaeef4 (diff)
Updated the loop logic for mirrors
It wouldn't break out of the loop since the `valid_mirror` variable was never changed.
-rw-r--r--examples/guided.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/guided.py b/examples/guided.py
index fc7ddeb6..8a16f561 100644
--- a/examples/guided.py
+++ b/examples/guided.py
@@ -23,12 +23,12 @@ def ask_user_questions():
# Set which region to download packages from during the installation
if not archinstall.arguments.get('mirror-region', None):
- valid_mirror = False
- while valid_mirror == False:
+ while True:
try:
archinstall.arguments['mirror-region'] = archinstall.select_mirror_regions(archinstall.list_mirrors())
+ break
except archinstall.RequirementError as e:
- archinstall.log(e, fg="yellow")
+ archinstall.log(e, fg="red")
else:
selected_region = archinstall.arguments['mirror-region']
archinstall.arguments['mirror-region'] = {selected_region : archinstall.list_mirrors()[selected_region]}