index : archinstall32 | |
Archlinux32 installer | gitolite user |
summaryrefslogtreecommitdiff |
author | Anton Hvornum <anton.feeds+github@gmail.com> | 2019-11-29 17:23:04 +0100 |
---|---|---|
committer | Anton Hvornum <anton.feeds+github@gmail.com> | 2019-11-29 17:23:04 +0100 |
commit | c5b44a6935b7b4fe3762202f3d2ae746e7ad24b3 (patch) | |
tree | f761abe70a4b1b28fd30dddee50c5c38290c5a9f | |
parent | 198c47333ea93083e141146ceb60d1166914df6e (diff) |
-rw-r--r-- | archinstall.py | 11 |
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()) |