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-29 17:23:04 +0100
committerAnton Hvornum <anton.feeds+github@gmail.com>2019-11-29 17:23:04 +0100
commitc5b44a6935b7b4fe3762202f3d2ae746e7ad24b3 (patch)
treef761abe70a4b1b28fd30dddee50c5c38290c5a9f /archinstall.py
parent198c47333ea93083e141146ceb60d1166914df6e (diff)
Fixing issues with the spawning of containers.
Diffstat (limited to 'archinstall.py')
-rw-r--r--archinstall.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/archinstall.py b/archinstall.py
index 74e22898..f449c133 100644
--- a/archinstall.py
+++ b/archinstall.py
@@ -318,12 +318,13 @@ class sys_command():#Thread):
if 'events' in self.kwargs:
for trigger in list(self.kwargs['events']):
if type(trigger) != bytes:
- key = self.kwargs['events'][trigger]
+ original = self.kwargs['events'][trigger]
del(self.kwargs['events'][trigger])
- trigger = bytes(key, 'UTF-8')
- self.kwargs['events'][trigger] = self.kwargs['events'][key]
- if type(self.kwargs['events'][key]) != bytes:
- self.kwargs['events'][key] = bytes(self.kwargs['events'][key], 'UTF-8')
+
+ trigger = bytes(original, 'UTF-8')
+ self.kwargs['events'][trigger] = self.kwargs['events'][original]
+ if type(self.kwargs['events'][trigger]) != bytes:
+ self.kwargs['events'][trigger] = bytes(self.kwargs['events'][trigger], 'UTF-8')
if trigger.lower() in self.trace_log[last_trigger_pos:].lower():
trigger_pos = self.trace_log[last_trigger_pos:].lower().find(trigger.lower())