packages: glibc/glibc.spec - run localedb-gen only if $SUPPORTED_LOCALES se...
Pawel Golaszewski
blues w pld-linux.org
Pon, 21 Gru 2009, 16:23:18 CET
On Mon, 21 Dec 2009, glen wrote:
> Author: glen Date: Mon Dec 21 14:51:29 2009 GMT
> Module: packages Tag: HEAD
> ---- Log message:
> - run localedb-gen only if $SUPPORTED_LOCALES set (merge from AC-branch)
>
> ---- Files affected:
> packages/glibc:
> glibc.spec (1.854 -> 1.855)
[...]
> %post -n localedb-src
> -/usr/bin/localedb-gen || :
> +SUPPORTED_LOCALES=
> +[ -f /etc/sysconfig/i18n ] && . /etc/sysconfig/i18n
> +[ -f /etc/sysconfig/localedb ] && . /etc/sysconfig/localedb
> +if [ "$SUPPORTED_LOCALES" ]; then
> + localedb-gen || :
> +fi
What is that for?
localedb-gen will gently display:
SUPPORTED_LOCALES not set
You can set it in /etc/sysconfig/i18n file
...as it should. If you have localedb-src you should set some locales.
Otherwise that package has no sense (does it?)
That change is wrong, IMO.
--
pozdr. Paweł Gołaszewski jid:blues<at>jabber<dot>gda<dot>pl
--------------------------------------------------------------------------
If you think of MS-DOS as mono, and Windows as stereo, then Linux is Dolby
Pro-Logic Surround Sound with Bass Boost and all the music is free.
Więcej informacji o liście dyskusyjnej pld-devel-pl