check-buildroot script: use export to set LANG
for find as well this ensures correct file processing.
This commit is contained in:
parent
11458278a5
commit
fd3ef9b09e
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue