Skip to content

Commit

Permalink
Corrected a variable usage in the local mirror parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
Torxed committed Nov 9, 2024
1 parent 065342c commit 021064e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions archinstall/lib/mirrors.py
Original file line number Diff line number Diff line change
Expand Up @@ -429,10 +429,10 @@ def _parse_locale_mirrors(mirrorlist: str) -> Dict[str, List[MirrorStatusEntryV3
mirror_list.setdefault(current_region, [])
break

url = urllib.parse.urlparse(line.removeprefix('Server = '))
url = line.removeprefix('Server = ')
mirror_entry = MirrorStatusEntryV3(
url=url.rstrip('$repo/os/$arch'),
protocol=url.scheme,
protocol=urllib.parse.urlparse(url).scheme,
active=True,
country=current_region or 'Worldwide',
# The following values are normally populated by
Expand Down

0 comments on commit 021064e

Please sign in to comment.