Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/lib/locale_helpers.py
diff options
context:
space:
mode:
authorFabian Bornschein <18744080+fabiscafe@users.noreply.github.com>2022-08-01 09:42:58 +0200
committerGitHub <noreply@github.com>2022-08-01 09:42:58 +0200
commitd2f58362c9035be57670784584a666eea8c09e60 (patch)
tree791e57437dbf1661c077f75fae88d85a94bba510 /archinstall/lib/locale_helpers.py
parent9194f6d85965f435f8d0ae44ba20e73cc761eb44 (diff)
Remove the hash/number sign at the line-start (#1345)
Currently the helper remove the first character of each line, this can lead to cases, where important characters are removed. For example if the locale is already set up. (hash is already removed) in that case the helper would remove the first character of the locale and lead to a broken attempt to set the locale later on. This change should avoid that and only remove the hash. Co-authored-by: Fabian Bornschein <2440175-fabiscafe@users.noreply.gitlab.com>
Diffstat (limited to 'archinstall/lib/locale_helpers.py')
-rw-r--r--archinstall/lib/locale_helpers.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/archinstall/lib/locale_helpers.py b/archinstall/lib/locale_helpers.py
index b48c3bc4..5580fa91 100644
--- a/archinstall/lib/locale_helpers.py
+++ b/archinstall/lib/locale_helpers.py
@@ -20,7 +20,7 @@ def list_locales() -> List[str]:
entries.reverse()
for entry in entries:
- text = entry[1:].strip()
+ text = entry.replace('#', '').strip()
if text == '':
break
locales.append(text)