Hello community, here is the log from the commit of package translation-update-upstream for openSUSE:Factory checked in at Sun Dec 19 12:41:49 CET 2010. -------- --- translation-update-upstream/translation-update-upstream.changes 2010-06-14 20:24:50.000000000 +0200 +++ /mounts/work_src_done/STABLE/translation-update-upstream/translation-update-upstream.changes 2010-12-14 18:11:56.000000000 +0100 @@ -1,0 +2,5 @@ +Tue Dec 14 18:10:56 CET 2010 - sbrabec@suse.cz + +- Validate locales and remove invalid ones (bnc#658999). + +------------------------------------------------------------------- calling whatdependson for head-i586 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ translation-update-upstream.spec ++++++ --- /var/tmp/diff_new_pack.MLCK6d/_old 2010-12-19 12:40:54.000000000 +0100 +++ /var/tmp/diff_new_pack.MLCK6d/_new 2010-12-19 12:40:54.000000000 +0100 @@ -22,7 +22,7 @@ License: GPLv2+ Group: System/Localization Version: 20100614 -Release: 1 +Release: 4 Summary: Tool for Translation Update from Upstream Provides: translation-update-tool Source: %{name}-%{version}.tar.bz2 @@ -99,9 +99,37 @@ install -m0644 msgheadermerge-empty.pot $RPM_BUILD_ROOT%{_prefix}/lib/translation-update-upstream/ ln -s translation-update-upstream $RPM_BUILD_ROOT%{_bindir}/translation-update-tool # -# gnome-i18n says nds_FME is wrong, remove until upstream clearified that # +# obsolete or bad locales +# +# gnome-i18n says nds_NFE is wrong, remove until upstream clearified that rm -fv $RPM_BUILD_ROOT%{_datadir}/%{name}/po/*/nds?NFE.po +# +# invalid locales +# +# should be @latin +rm -fv $RPM_BUILD_ROOT%{_datadir}/%{name}/po/*/*@Latn.po +# should be nb +rm -fv $RPM_BUILD_ROOT%{_datadir}/%{name}/po/*/no.po +# should be nb +rm -fv $RPM_BUILD_ROOT%{_datadir}/%{name}/po/*/no_nb.po +# should be ar +rm -fv $RPM_BUILD_ROOT%{_datadir}/%{name}/po/*/ara.po +# testing locale, should not appear in packages +rm -fv $RPM_BUILD_ROOT%{_datadir}/%{name}/po/*/en_IGID.po +# short form of these locales should be used +rm -fv $RPM_BUILD_ROOT%{_datadir}/%{name}/po/*/my_MM.po +# +# go through valid locales and fail in invalid ones +# +cd $RPM_BUILD_ROOT%{_datadir} ; +echo translation*/*/*.po | sed 's:.*/::;s:\.po$::' | sort -u +for LOCALE in $(set +x ; cd $RPM_BUILD_ROOT%{_datadir} ; ls -1 translation*/*/*/*.po | sed 's:.*/::;s:\.po$::' | sort -u) ; do + if ! test -d /usr/share/locale/$LOCALE ; then + echo "Invalid locale $LOCALE! Please fix (delete, rename or add to filesystem package)." + exit 1 + fi +done %clean rm -rf $RPM_BUILD_ROOT ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... -- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org