index : archinstall32 | |
Archlinux32 installer | gitolite user |
summaryrefslogtreecommitdiff |
author | Anton Hvornum <anton.feeds+github@gmail.com> | 2020-03-15 15:33:49 +0000 |
---|---|---|
committer | Anton Hvornum <anton.feeds+github@gmail.com> | 2020-03-15 15:33:49 +0000 |
commit | 13a44243a853281905a4d967ada1cd7191f75dbb (patch) | |
tree | 658dca669de48a1ae7e906bd2aa443cb228ab4e6 /archinstall.py | |
parent | 7684ea1304fbaf794a97263c9bc9931ea602866d (diff) |
-rw-r--r-- | archinstall.py | 11 |
diff --git a/archinstall.py b/archinstall.py index bf434ddc..0d70b3e3 100644 --- a/archinstall.py +++ b/archinstall.py @@ -975,11 +975,12 @@ def filter_mirrors_by_country_list(countries, top=None, *positionals, **kwargs): return True def add_specific_mirrors(mirrors, *positionals, **kwargs): - with open('/etc/pacman.d/mirrorlist', 'a') as mirrorlist: - mirrorlist.write('\n') - for url in mirrors: - mirrorlist.write(f'# {mirrors[url]}\n') - mirrorlist.write(f'Server = {url}\n') + if not SAFETY_LOCK: + with open('/etc/pacman.d/mirrorlist', 'a') as mirrorlist: + mirrorlist.write('\n') + for url in mirrors: + mirrorlist.write(f'# {mirrors[url]}\n') + mirrorlist.write(f'Server = {url}\n') return True def strap_in_base(*positionals, **kwargs): |