index : archinstall32 | |
Archlinux32 installer | gitolite user |
summaryrefslogtreecommitdiff |
author | Владислав <awayfromgalaxy@gmail.com> | 2021-04-27 19:01:38 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-27 19:01:38 +0300 |
commit | bbe38025fb862c804a8fe924d7cc32e214e665b5 (patch) | |
tree | 38dbe99bc588a4e8f91d3c41f86cf045933c7475 /archinstall/lib/mirrors.py | |
parent | 492c44c916312460b831e9c5d9308a48fffdeb7d (diff) | |
parent | 090b98b8307fd924882e78b69df9227b4621ec6b (diff) |
-rw-r--r-- | archinstall/lib/mirrors.py | 6 |
diff --git a/archinstall/lib/mirrors.py b/archinstall/lib/mirrors.py index 04f47c0d..ae6c6422 100644 --- a/archinstall/lib/mirrors.py +++ b/archinstall/lib/mirrors.py @@ -1,4 +1,4 @@ -import urllib.request +import urllib.request, logging from .exceptions import * from .general import * @@ -59,7 +59,7 @@ def insert_mirrors(mirrors, *args, **kwargs): return True def use_mirrors(regions :dict, destination='/etc/pacman.d/mirrorlist'): - log(f'A new package mirror-list has been created: {destination}', level=LOG_LEVELS.Info) + log(f'A new package mirror-list has been created: {destination}', level=logging.INFO) for region, mirrors in regions.items(): with open(destination, 'w') as mirrorlist: for mirror in mirrors: @@ -79,7 +79,7 @@ def list_mirrors(): try: response = urllib.request.urlopen(url) except urllib.error.URLError as err: - log(f'Could not fetch an active mirror-list: {err}', level=LOG_LEVELS.Warning, fg="yellow") + log(f'Could not fetch an active mirror-list: {err}', level=logging.WARNING, fg="yellow") return regions |