Bug 10878

Summary: Thunderbird's installation, %post to check language
Product: Mageia Reporter: Adrien D <email>
Component: RPM PackagesAssignee: Mageia Bug Squad <bugsquad>
Status: RESOLVED OLD QA Contact:
Severity: normal    
Priority: Normal CC: email
Version: 3   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Source RPM: thunderbird CVE:
Status comment:

Description Adrien D 2013-07-29 19:39:10 CEST
Hi team Mageia,

Is it possible to check system language after installation of the Thunderbird (main package) to install automatically the thunderbird-l10n package ?

For example, in the %post section

lang=check_locale()
urpmi thunderbird_$lang

Thanks

Reproducible: 

Steps to Reproduce:
Adrien D 2013-07-29 19:39:16 CEST

CC: (none) => adrien_d

Comment 1 Adrien D 2013-07-29 19:45:37 CEST
%post

lang=$(rpm-qa | grep -E 'locales-' | cut -d"-" -f2)
urpmi thunderbird-$lang
Comment 2 Adrien D 2013-07-29 19:47:16 CEST
OOps little problem into the grep expression :

%post
lang=$(rpm-qa | grep -E '^locales-' | cut -d"-" -f2)
urpmi thunderbird-$lang


It's an example because rpm-qa is too lang, it's probably possible to check easily the locale into the good format
Comment 3 Manuel Hiebel 2013-07-29 20:00:55 CEST
I don't think such "workaround" is the good way to do it (but I have no knowledge)

why not simply add proper require/suggest like what is suggested in bug 1344 ?
(and like what is done in firefox iirc)
Comment 4 Marja Van Waes 2015-03-31 16:03:39 CEST
Mageia 3 changed to end-of-life (EOL) status 4 months ago.
http://blog.mageia.org/en/2014/11/26/lets-say-goodbye-to-mageia-3/ 

Mageia 3 is no longer maintained, which means that it will not receive any further security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of Mageia
please feel free to click on "Version" change it against that version of Mageia
and reopen this bug.

Thank you for reporting this bug and we are sorry it could not be fixed.

--
The Mageia Bugsquad

Status: NEW => RESOLVED
Resolution: (none) => OLD