summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Festi <ffesti@redhat.com>2022-07-06 13:19:59 +0200
committerPanu Matilainen <pmatilai@redhat.com>2022-09-02 08:48:10 +0300
commit787606ab4886ec64fe20c0de8fbd7b52267aea1f (patch)
tree1b71481cfd0bd05e9616901575c156743456b853
parente6411e941895c1b759ec29637bc28ee855085c97 (diff)
downloadrpm-787606ab4886ec64fe20c0de8fbd7b52267aea1f.tar.gz
Exclude *.src.rpm from check-buildroot
With the SRPMs now containing the expanded spec file they are bound to have the build root included in the header. Turns out some people package SRPMs to rebuild them locally e.g. against the local kernel. Resolves: rhbz#2104150 (cherry picked from commit aa701a8f483e2b1f57764c5d9129e27271d96b38)
-rwxr-xr-xscripts/check-buildroot1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/check-buildroot b/scripts/check-buildroot
index 74c3b469b..d97820633 100755
--- a/scripts/check-buildroot
+++ b/scripts/check-buildroot
@@ -28,6 +28,7 @@ NCPUS=${RPM_BUILD_NCPUS:-1}
find "$RPM_BUILD_ROOT" \! \( \
-name '*.pyo' -o -name '*.pyc' -o -name '*.elc' -o -name '.packlist' \
+ -o -name '*.src.rpm' \
\) -type f -print0 | \
LANG=C xargs -0r -P$NCPUS -n16 grep -lF "$RPM_BUILD_ROOT" >>$tmp