Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall
diff options
context:
space:
mode:
authorOleksandr Zinkevych <zso040399@gmail.com>2021-10-22 14:53:18 +0300
committerOleksandr Zinkevych <zso040399@gmail.com>2021-10-22 14:53:18 +0300
commita822b8edae2c80edc86e786e27d876b705b5c985 (patch)
tree904c58111a7fc0b138597fe2e9987ffe74df1990 /archinstall
parent165d47f4bb3d79f405691a7cfb6ece55b33cd81c (diff)
use_mirrors: return None instead of True
Diffstat (limited to 'archinstall')
-rw-r--r--archinstall/lib/mirrors.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/archinstall/lib/mirrors.py b/archinstall/lib/mirrors.py
index 12fa7450..739bf1a8 100644
--- a/archinstall/lib/mirrors.py
+++ b/archinstall/lib/mirrors.py
@@ -116,14 +116,13 @@ def insert_mirrors(mirrors, *args, **kwargs):
def use_mirrors(
regions: Mapping[str, Iterable[str]],
destination: str ='/etc/pacman.d/mirrorlist'
-) -> bool:
+) -> None:
log(f'A new package mirror-list has been created: {destination}', level=logging.INFO)
with open(destination, 'w') as mirrorlist:
for region, mirrors in regions.items():
for mirror in mirrors:
mirrorlist.write(f'## {region}\n')
mirrorlist.write(f'Server = {mirror}\n')
- return True
def re_rank_mirrors(top=10, *positionals, **kwargs):