index : archinstall32 | |
Archlinux32 installer | gitolite user |
summaryrefslogtreecommitdiff |
-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): |