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-10-28 18:06:04 +0100
committerAnton Hvornum <anton.feeds+github@gmail.com>2019-10-28 18:06:04 +0100
commite848dfdd33d8b76189ce5a839ccec4e6772f7bd7 (patch)
treea4be848bd651a5ee816303837b2031eed01f29f2 /archinstall.py
parent143cecd03f4f4a7c4bbb2b08bfc685407c18e59c (diff)
Fixed a issue where the cursor some times would move to far into the trace log of a subcommand. Causnig triggers not to occur. A ghost issue in terms of logic
Diffstat (limited to 'archinstall.py')
-rw-r--r--archinstall.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/archinstall.py b/archinstall.py
index 9a5781f5..0840581b 100644
--- a/archinstall.py
+++ b/archinstall.py
@@ -177,10 +177,12 @@ class sys_command():
if 'triggers' in self.opts:
for trigger in list(self.opts['triggers']):
if trigger.lower() in trace_log[last_trigger_pos:].lower():
+ trigger_pos_in_log = trace_log[last_trigger_pos:].lower().find(trigger.lower()) + len(trigger)
+
if 'debug' in self.opts and self.opts['debug']:
print('[N] Writing to subsystem: {}'.format(self.opts['triggers'][trigger].decode('UTF-8')))
- last_trigger_pos = len(trace_log)
+ last_trigger_pos = trigger_pos_in_log #len(trace_log)
os.write(child_fd, self.opts['triggers'][trigger])
del(self.opts['triggers'][trigger])
broke = True