Added a new function: flush_all_mirrors(). Can be used to wipe default mirrors prior to adding specific ones.
This commit is contained in:
parent
13a44243a8
commit
e9aadfa29b
|
|
@ -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'
|
||||
|
|
|
|||
Loading…
Reference in New Issue