index : archinstall32 | |
Archlinux32 installer | gitolite user |
summaryrefslogtreecommitdiff |
author | Anton Hvornum <anton.feeds+github@gmail.com> | 2020-03-15 16:13:40 +0000 |
---|---|---|
committer | Anton Hvornum <anton.feeds+github@gmail.com> | 2020-03-15 16:13:40 +0000 |
commit | 4223631b80c6787b470313d829beda5b5ed08037 (patch) | |
tree | d6f58588d4bd608d9ba57055dee503b5925ff015 /archinstall.py | |
parent | e9aadfa29b6d5009fa1542e145e9b2e640221a7f (diff) |
-rw-r--r-- | archinstall.py | 5 |
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 |