[oe-commits] [openembedded-core] 11/13: scripts/patchreview: tighten patch detection

git at git.openembedded.org git at git.openembedded.org
Tue Oct 16 20:00:22 UTC 2018


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master
in repository openembedded-core.

commit ed912e10c61ea9d45ca648e03eebafeebcf7e9b0
Author: Ross Burton <ross.burton at intel.com>
AuthorDate: Mon Oct 15 21:30:37 2018 +0100

    scripts/patchreview: tighten patch detection
    
    Only look in recipes-* folders for patches, to stop finding patches in
    e.g. meta/lib/oeqa/manual.
    
    Signed-off-by: Ross Burton <ross.burton at intel.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 scripts/contrib/patchreview.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/contrib/patchreview.py b/scripts/contrib/patchreview.py
index 1086c95..a4d5ba6 100755
--- a/scripts/contrib/patchreview.py
+++ b/scripts/contrib/patchreview.py
@@ -203,7 +203,7 @@ if __name__ == "__main__":
 
     if args.directory:
         os.chdir(args.directory)
-    patches = subprocess.check_output(("git", "ls-files", "*.patch", "*.diff")).decode("utf-8").split()
+    patches = subprocess.check_output(("git", "ls-files", "recipes-*/**/*.patch", "recipes-*/**/*.diff")).decode("utf-8").split()
     results = patchreview(patches)
     analyse(results, want_blame=args.blame, verbose=args.verbose)
     if args.histogram:

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list