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 20:33:01 +0000
committerAnton Hvornum <anton.feeds+github@gmail.com>2020-03-15 20:33:01 +0000
commit4e04badd655f2fdd469f48228388bc4f88568ffd (patch)
tree95b788cb940c05095e2b1e10aee107f868aa046b
parent3c0963a0a10116342c75c11a5971df99e2e04a7b (diff)
Added a client field in kwargs, used when pushing on_output.
-rw-r--r--archinstall.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/archinstall.py b/archinstall.py
index dfc2926f..62bbf245 100644
--- a/archinstall.py
+++ b/archinstall.py
@@ -209,6 +209,7 @@ class sys_command():#Thread):
self.cmd = shlex.split(cmd)
self.args = args
self.kwargs = kwargs
+ if not 'client' in self.kwargs: self.kwargs['client'] = None
self.callback = callback
self.pid = None
self.exit_code = None
@@ -314,7 +315,7 @@ class sys_command():#Thread):
log(self.cmd[0],'gave:', output.decode('UTF-8'), origin='spawn', level=4)
if 'on_output' in self.kwargs:
- self.kwargs['on_output'](self, output)
+ self.kwargs['on_output'](self.kwargs['client'], output)
lower = output.lower()
broke = False