From 3927ac2198d3cbb4137f8006a83d5527fa5d9a55 Mon Sep 17 00:00:00 2001 From: Michael Shigorin Date: Sat, 22 Mar 2014 18:50:06 +0400 Subject: [PATCH] install2: more locale cleanups My gut feeling is that we're not going to see glib2's messages a lot within installer environment anyways. And there's a forgotten /usr/share/X11/locale/ too. --- .../install2/image-scripts.d/90-install2-cleanup-l10n | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/features.in/install2/install2/image-scripts.d/90-install2-cleanup-l10n b/features.in/install2/install2/image-scripts.d/90-install2-cleanup-l10n index 3463968f..fbfd33f8 100755 --- a/features.in/install2/install2/image-scripts.d/90-install2-cleanup-l10n +++ b/features.in/install2/install2/image-scripts.d/90-install2-cleanup-l10n @@ -1,6 +1,9 @@ #!/bin/sh # drop unused l10n/i18n data +# preparations +rpm -e --nodeps glib2-locales + # the fell swoop find /usr/share/locale/ -type f \! -name 'alterator*' -delete rm -rf /usr/share/zoneinfo/{posix,right}/ @@ -12,10 +15,10 @@ rm -f /usr/lib*/gconv/BIG5* rm -f /usr/lib*/gconv/EBCDIC* # en_* variations -rm -rf /usr/{lib,share}/locale/en_[^U]* +rm -rf /usr/{lib,share{,/X11}}/locale/en_[^U]* # mods -rm -rf /usr/{lib,share}/locale/*@* +rm -rf /usr/{lib,share{,/X11}}/locale/*@* # non-utf8 locales find /usr/lib/locale -mindepth 1 -maxdepth 1 -type d \! -name '*.utf8' -print0 |