diff options
author | Florian Festi <ffesti@redhat.com> | 2022-07-06 13:19:59 +0200 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2022-09-02 08:48:10 +0300 |
commit | 787606ab4886ec64fe20c0de8fbd7b52267aea1f (patch) | |
tree | 1b71481cfd0bd05e9616901575c156743456b853 | |
parent | e6411e941895c1b759ec29637bc28ee855085c97 (diff) | |
download | rpm-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-x | scripts/check-buildroot | 1 |
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 |