Skip to content

Commit

Permalink
Removed search logic for mirrors since we now have column-printouts, …
Browse files Browse the repository at this point in the history
…the columns enabled us to print all the regions which means the search was an excessive feature.
  • Loading branch information
Torxed committed Mar 20, 2021
1 parent 42ba36b commit f3b93c1
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions archinstall/lib/user_interaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -295,23 +295,13 @@ def select_mirror_regions(mirrors, show_top_mirrors=True):
selected_mirrors = {}

if len(regions) >= 1:
print_large_list(regions, margin_bottom=4)
print_large_list(regions, margin_bottom=2)

print(' -- You can enter ? or help to search for more regions --')
print(' -- You can skip this step by leaving the option blank --')
print(' -- (You can use Shift + PageUp to scroll in the list --')
selected_mirror = input('Select one of the above regions to download packages from (by number or full name): ')
if len(selected_mirror.strip()) == 0:
return {}

elif selected_mirror.lower() in ('?', 'help'):
filter_string = input('Search for a region containing (example: "united"): ').strip().lower()
for region in mirrors:
if filter_string in region.lower():
selected_mirrors[region] = mirrors[region]

return selected_mirrors

elif selected_mirror.isdigit() and (pos := int(selected_mirror)) <= len(regions)-1:
region = regions[int(selected_mirror)]
selected_mirrors[region] = mirrors[region]
Expand Down

0 comments on commit f3b93c1

Please sign in to comment.