Accepting request 1001101 from home:AndreasStieger:branches:KDE:Frameworks5

- macros.kf5: convert obsolete egrep call to grep -E

OBS-URL: https://build.opensuse.org/request/show/1001101
OBS-URL: https://build.opensuse.org/package/show/KDE:Frameworks5/kf5-filesystem?expand=0&rev=83
This commit is contained in:
Fabian Vogt 2022-09-04 11:10:02 +00:00 committed by Git OBS Bridge
parent 20a201a9cc
commit 7a1283d78a
3 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Sun Sep 4 10:57:35 UTC 2022 - Andreas Stieger <andreas.stieger@gmx.de>
- macros.kf5: convert obsolete egrep call to grep -E
-------------------------------------------------------------------
Mon Mar 7 09:53:25 UTC 2022 - Christophe Giboudeaux <christophe@krop.fr>

View File

@ -1,7 +1,7 @@
#
# spec file for package kf5-filesystem
#
# Copyright (c) 2020 SUSE LLC
# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed

View File

@ -163,7 +163,7 @@ rm -f $MO_NAME_NEW \
# remove languages we do not yet support - but give out statistics \
if [ -d "%{buildroot}%{_kf5_localedir}" ] ; then \
find "%{buildroot}%{_kf5_localedir}" -maxdepth 1 -type d | sed 's:'"%{buildroot}"%{_kf5_localedir}/'::; /^$/d' | while read dir; do \
if ! rpm -ql filesystem | egrep -q "/usr/share/locale/$dir"$; then \
if ! rpm -ql filesystem | grep -E -q "/usr/share/locale/$dir"$; then \
find %{buildroot}%{_kf5_localedir}/$dir -name *.mo | sed 's:'"%{buildroot}"'::' | while read file; do \
echo -n "removing translation $file: " \
msgunfmt "%{buildroot}/$file" | msgfmt --statistics -o /dev/null - \