Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/lib
diff options
context:
space:
mode:
authorAnton Hvornum <anton@hvornum.se>2021-01-24 23:31:41 +0100
committerAnton Hvornum <anton@hvornum.se>2021-01-24 23:31:41 +0100
commitca2408a3d290a37d0b955ea3368f7eabb73d20a3 (patch)
tree4c7f1052066a19ee6d6706a1e57c38b854fbcc1b /archinstall/lib
parent828a09b9c8750dfb582ccd12d79fa7faa4512415 (diff)
Mixup with variable name
Diffstat (limited to 'archinstall/lib')
-rw-r--r--archinstall/lib/output.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/archinstall/lib/output.py b/archinstall/lib/output.py
index 52b2ce2c..baa454ec 100644
--- a/archinstall/lib/output.py
+++ b/archinstall/lib/output.py
@@ -90,14 +90,14 @@ def log(*args, **kwargs):
# If a logfile is defined in storage,
# we use that one to output everything
- if (logfile := storage.get('LOG_FILE', None)):
- absolute_logfile = os.path.join(storage.get('LOG_PATH', './'), logfile)
+ if (filename := storage.get('LOG_FILE', None)):
+ absolute_logfile = os.path.join(storage.get('LOG_PATH', './'), filename)
if not os.path.isfile(absolute_logfile):
os.makedirs(os.path.dirname(absolute_logfile))
Path(absolute_logfile).touch() # Overkill?
with open(absolute_logfile, 'a') as log_file:
- logfile.write(f"{orig_string}\n")
+ log_file.write(f"{orig_string}\n")
# If we assigned a level, try to log it to systemd's journald.
# Unless the level is higher than we've decided to output interactively.