check-buildroot script: use export to set LANG

for find as well this ensures correct file processing.
This commit is contained in:
Pavel Valena 2022-04-07 16:55:00 +02:00 committed by Florian Festi
parent 11458278a5
commit fd3ef9b09e
1 changed files with 2 additions and 1 deletions

View File

@ -28,10 +28,11 @@ trap 'rm -f "$tmp"' EXIT
NCPUS=${RPM_BUILD_NCPUS:-1}
export LANG=C
find "$RPM_BUILD_ROOT" \! \( \
-name '*.pyo' -o -name '*.pyc' -o -name '*.elc' -o -name '.packlist' \
\) -type f -print0 | \
LANG=C xargs -0r "-P$NCPUS" -n16 grep -lF "$RPM_BUILD_ROOT" >>"$tmp" 2>&1
xargs -0r "-P$NCPUS" -n16 grep -lF "$RPM_BUILD_ROOT" >>"$tmp" 2>&1
if test -s "$tmp"; then
cat "$tmp"