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@gmail.com>2019-04-14 21:30:35 +0200
committerAnton Hvornum <anton.feeds@gmail.com>2019-04-14 21:30:35 +0200
commit65aed10fa2c56dcce38bfbd6059e64a67f7118e6 (patch)
tree46ecdc3ba8ad8024f211122de0bc64a187036260 /archinstall.py
parent35cfef9857ba198b3efd829f532b816cee886975 (diff)
Added more templates and removed debugging
Diffstat (limited to 'archinstall.py')
-rw-r--r--archinstall.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/archinstall.py b/archinstall.py
index eaff3409..afb22d65 100644
--- a/archinstall.py
+++ b/archinstall.py
@@ -186,16 +186,12 @@ class sys_command():
yield output
- print('Debug...')
# Since we're in a subsystem, we gotta bail out!
# Bail bail bail!
os.write(child_fd, b'shutdown now\n')
- print('Shutdown initatied')
-
exit_code = os.waitpid(self.pid, 0)[1]
- print('Exit code:', exit_code)
if exit_code != 0:
print('[E] Command "{}" exited with status code:'.format(self.cmd[0]), exit_code)
print(trace_log)
@@ -641,7 +637,7 @@ if __name__ == '__main__':
del(opts['pass-args'])
elif 'format' in opts:
del(opts['format'])
- else:
+ elif ('debug' in opts and opts['debug']) or ('debug' in conf and conf['debug']):
print('[-] Options: {}'.format(opts))
if 'pass-args' in opts and opts['pass-args']:
command = command.format(**args)