Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Hvornum <anton.feeds+github@gmail.com>2020-03-15 15:37:33 +0000
committerAnton Hvornum <anton.feeds+github@gmail.com>2020-03-15 15:37:33 +0000
commite9aadfa29b6d5009fa1542e145e9b2e640221a7f (patch)
treeeb480d601cf295733df76be0bb023b1b64e30b42
parent13a44243a853281905a4d967ada1cd7191f75dbb (diff)
Added a new function: flush_all_mirrors(). Can be used to wipe default mirrors prior to adding specific ones.
-rw-r--r--archinstall.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/archinstall.py b/archinstall.py
index 0d70b3e3..cc984683 100644
--- a/archinstall.py
+++ b/archinstall.py
@@ -983,6 +983,12 @@ def add_specific_mirrors(mirrors, *positionals, **kwargs):
mirrorlist.write(f'Server = {url}\n')
return True
+def flush_all_mirrors(*positionals, **kwargs):
+ if not SAFETY_LOCK:
+ with open('/etc/pacman.d/mirrorlist', 'w') as mirrorlist:
+ mirrorlist.write('\n') # TODO: Not needed.
+ return True
+
def strap_in_base(*positionals, **kwargs):
if args['aur-support']:
args['packages'] += ' git'