Makefile: ignore *.orig and *.rej in check-package target

When one is applying patches, it is pretty common to end up with .orig
and/or .rej files lying around. Unfortunately, our 'Config.*' match in
check-package ends up matching those files, causing false positives
when running "make check-package". To avoid this, this commit
excludes *.orig and *.rej files for the find logic used in the
check-package target.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
2022.08.x
Thomas Petazzoni 2022-08-03 21:23:59 +02:00 committed by Yann E. MORIN
parent 88e95a36cd
commit 7d0d3987e9
1 changed files with 1 additions and 0 deletions

View File

@ -1253,6 +1253,7 @@ check-flake8:
check-package:
find $(TOPDIR) -type f \( -name '*.mk' -o -name '*.hash' -o -name 'Config.*' -o -name '*.patch' \) \
-a -not -name '*.orig' -a -not -name '*.rej' \
-exec ./utils/check-package --exclude=Sob {} +
include docs/manual/manual.mk