Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall.py
diff options
context:
space:
mode:
authorAnton Hvornum <anton.feeds+github@gmail.com>2019-11-18 23:44:50 +0000
committerAnton Hvornum <anton.feeds+github@gmail.com>2019-11-18 23:44:50 +0000
commitd80d74b82090a9097bc483f81ae5d84643007ca3 (patch)
treeb8b079515a9c740e427f0c6b6fe2c026e03cbdd8 /archinstall.py
parent4f394d40ceddb5d9c9de7a11b2dc1efeaf2ad19f (diff)
Debugging
Diffstat (limited to 'archinstall.py')
-rw-r--r--archinstall.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/archinstall.py b/archinstall.py
index 9cf7246a..2e1a9b7a 100644
--- a/archinstall.py
+++ b/archinstall.py
@@ -257,7 +257,7 @@ class sys_command():#Thread):
yield line
def __repr__(self, *positionals, **kwargs):
- return self.trace_log.decode('UTF-8')
+ return f"{self.cmd, self.trace_log}"
def decode(self, fmt='UTF-8'):
return self.trace_log.decode(fmt)
@@ -891,7 +891,10 @@ def filter_mirrors_by_country(countries, top=10, *positionals, **kwargs):
def strap_in_base(*positionals, **kwargs):
if args['aur-support']:
args['packages'] += ' git'
- if sys_command('/usr/bin/pacman -Syy', *positionals, **kwargs).exit_code == 0:
+ x = sys_command('/usr/bin/pacman -Syy', *positionals, **kwargs)
+ print(x)
+ print(x.exit_code)
+ if x.exit_code == 0:
if sys_command('/usr/bin/pacstrap /mnt base base-devel linux linux-firmware btrfs-progs efibootmgr nano wpa_supplicant dialog {packages}'.format(**args), *positionals, **kwargs).exit_code == 0:
return True
return False