summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFedja Beader <fedja@protonmail.ch>2024-02-07 22:16:00 +0100
committerFedja Beader <fedja@protonmail.ch>2024-02-07 22:16:00 +0100
commit95c6b221137f1931bce065a99c4601f057ae7dd7 (patch)
treecac5f3d77893c52746ef35573bca3599eb86ceb0
parent07b1f32ae917e16f7f190f103451e279263f1e63 (diff)
downloadtmwa-95c6b221137f1931bce065a99c4601f057ae7dd7.tar.gz
tmwa-95c6b221137f1931bce065a99c4601f057ae7dd7.tar.bz2
tmwa-95c6b221137f1931bce065a99c4601f057ae7dd7.tar.xz
tmwa-95c6b221137f1931bce065a99c4601f057ae7dd7.zip
Trying another method of setting locales
-rw-r--r--.gitlab-ci.yml14
1 files changed, 9 insertions, 5 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index b267f30..6152ce1 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -5,7 +5,7 @@ stages:
variables: &base_vars
# Package locales supposedly provides update-locale
- DEBIAN_COMMON_PACKAGES: make python3.7 python3 git gcc g++ locales
+ DEBIAN_COMMON_PACKAGES: make python3.7 python3 git gcc g++ locales debconf-utils
GIT_DEPTH: 100 # Will break again eventually.
.prerequisites: &prerequisites
@@ -20,10 +20,14 @@ variables: &base_vars
- cat /etc/environment
- echo "locale.gen:"
- cat /etc/locale.gen
- - echo 'en_US.UTF-8 UTF-8' > /etc/locale.gen
- - locale-gen
- - update-locale LANG=en_US.UTF-8
- - locale
+# - echo 'en_US.UTF-8 UTF-8' > /etc/locale.gen
+# - locale-gen
+# - update-locale LANG=en_US.UTF-8
+# - locale
+# - dpkg-reconfigure --frontend noninteractive locales
+ - echo "locales locales/default_environment_locale select en_US.UTF-8" | debconf-set-selections
+ - echo "locales locales/locales_to_be_generated multiselect en_US.UTF-8 UTF-8" | debconf-set-selections
+ - rm "/etc/locale.gen"
- dpkg-reconfigure --frontend noninteractive locales
- locale
#- locale