fix a mistake in locale.gen editing [release 4.1-3mamba;Thu Oct 17 2024]
This commit is contained in:
parent
af9808d887
commit
d66852f03f
@ -1,6 +1,6 @@
|
||||
Name: langpacks
|
||||
Version: 4.1
|
||||
Release: 2mamba
|
||||
Release: 3mamba
|
||||
Summary: Langpacks meta-package
|
||||
Group: System/Internationalization
|
||||
Vendor: openmamba
|
||||
@ -28,7 +28,7 @@ This package provides %{2} langpacks meta-package.\
|
||||
%post %{1}\
|
||||
if [ $1 -ge 1 ]; then\
|
||||
l=`echo %{1}|cut -d_ -f1`\
|
||||
sed -i "s|^#\\(%{l}_.* UTF-8\\)|\\1|" /etc/locale.gen\
|
||||
sed -i "s|^#\\(${l}_.* UTF-8\\)|\\1|" /etc/locale.gen\
|
||||
locale-gen\
|
||||
fi\
|
||||
:\
|
||||
@ -36,7 +36,7 @@ fi\
|
||||
%postun %{1}\
|
||||
if [ $1 -eq 0 ]; then\
|
||||
l=`echo %{1}|cut -d_ -f1`\
|
||||
sed -i "s|^\\(%{l}_.* UTF-8\\)|#\\1|" /etc/locale.gen\
|
||||
sed -i "s|^\\(${l}_.* UTF-8\\)|#\\1|" /etc/locale.gen\
|
||||
locale-gen\
|
||||
fi\
|
||||
:\
|
||||
@ -149,6 +149,9 @@ DESTDIR=%{buildroot} appstream-util split-appstream %{SOURCE0}
|
||||
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||
|
||||
%changelog
|
||||
* Thu Oct 17 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 4.1-3mamba
|
||||
- fix a mistake in locale.gen editing
|
||||
|
||||
* Wed Oct 16 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 4.1-2mamba
|
||||
- configure glibc locales for langpack language in post scripts
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user