From e0114fe0bd9ad9df1c13733e236606e0a1d11a25 Mon Sep 17 00:00:00 2001 From: Eugenio Paolantonio Date: Tue, 5 Nov 2024 13:44:56 +0100 Subject: [PATCH] live: config.sh: ignore non-existent translations if already missing Some packages (e.g. gettext-runtime) might not be installed, and if missing the glob would not be evaluated and rm would fail. Signed-off-by: Eugenio Paolantonio --- live/src/agama-installer.changes | 5 +++++ live/src/config.sh | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/live/src/agama-installer.changes b/live/src/agama-installer.changes index 714dde6e81..5eecef5827 100644 --- a/live/src/agama-installer.changes +++ b/live/src/agama-installer.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Nov 5 12:41:19 UTC 2024 - Eugenio Paolantonio + +- config.sh: ignore non-existent translations if already missing. + ------------------------------------------------------------------- Fri Sep 20 11:44:43 UTC 2024 - Imobach Gonzalez Sosa diff --git a/live/src/config.sh b/live/src/config.sh index 1218b5e9a6..bd42866886 100644 --- a/live/src/config.sh +++ b/live/src/config.sh @@ -137,7 +137,7 @@ ls -1 "${IGNORE_OPTS[@]}" -I "en_US*" -I "C.*" /usr/lib/locale/ | xargs -I% sh - # delete unused translations (MO files) for t in zypper gettext-runtime p11-kit; do - rm /usr/share/locale/*/LC_MESSAGES/$t.mo + rm -f /usr/share/locale/*/LC_MESSAGES/$t.mo done du -h -s /usr/{share,lib}/locale/