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 16:13:40 +0000
committerAnton Hvornum <anton.feeds+github@gmail.com>2020-03-15 16:13:40 +0000
commit4223631b80c6787b470313d829beda5b5ed08037 (patch)
treed6f58588d4bd608d9ba57055dee503b5925ff015
parente9aadfa29b6d5009fa1542e145e9b2e640221a7f (diff)
Added more log entries to commandlog.
-rw-r--r--archinstall.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/archinstall.py b/archinstall.py
index cc984683..808ee018 100644
--- a/archinstall.py
+++ b/archinstall.py
@@ -232,7 +232,7 @@ class sys_command():#Thread):
os.makedirs(self.exec_dir)
if self.kwargs['emulate']:
- commandlog.append(cmd + ' #emulated')
+ commandlog.append(cmd + ' # (emulated)')
elif 'hide_from_log' in self.kwargs and self.kwargs['hide_from_log']:
pass
else:
@@ -976,15 +976,18 @@ def filter_mirrors_by_country_list(countries, top=None, *positionals, **kwargs):
def add_specific_mirrors(mirrors, *positionals, **kwargs):
if not SAFETY_LOCK:
+ commandlog.append('# Adding mirrors to /etc/pacman.d/mirrorlist')
with open('/etc/pacman.d/mirrorlist', 'a') as mirrorlist:
mirrorlist.write('\n')
for url in mirrors:
+ commandlog.append(f'# {url}')
mirrorlist.write(f'# {mirrors[url]}\n')
mirrorlist.write(f'Server = {url}\n')
return True
def flush_all_mirrors(*positionals, **kwargs):
if not SAFETY_LOCK:
+ commandlog.append('# Flushed /etc/pacman.d/mirrorlist')
with open('/etc/pacman.d/mirrorlist', 'w') as mirrorlist:
mirrorlist.write('\n') # TODO: Not needed.
return True