From f66f51b6c68b74e91ccde2eebf57e40c5e7ba582 Mon Sep 17 00:00:00 2001 From: Thomas Petazzoni Date: Wed, 3 Aug 2022 21:23:59 +0200 Subject: [PATCH] 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 Signed-off-by: Yann E. MORIN (cherry picked from commit 7d0d3987e921e24f46db11590cf27d6bd5780d00) Signed-off-by: Peter Korsgaard --- Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile b/Makefile index aa6c11acec..2b4d927445 100644 --- a/Makefile +++ b/Makefile @@ -1256,6 +1256,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