summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2018-10-15 20:30:37 (GMT)
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-10-16 19:35:43 (GMT)
commitbefef286520c9349d9555cb69ea4a7b540a0d096 (patch)
tree96dd1c13ee87c16eacac1c32215afebd81271743 /scripts
parentb382e7ec346909730d3393a9799956c9f5a18ca1 (diff)
downloadpoky-befef286520c9349d9555cb69ea4a7b540a0d096.tar.gz
scripts/patchreview: tighten patch detection
Only look in recipes-* folders for patches, to stop finding patches in e.g. meta/lib/oeqa/manual. (From OE-Core rev: ed912e10c61ea9d45ca648e03eebafeebcf7e9b0) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/contrib/patchreview.py2
1 files changed, 1 insertions, 1 deletions
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__":
203 203
204 if args.directory: 204 if args.directory:
205 os.chdir(args.directory) 205 os.chdir(args.directory)
206 patches = subprocess.check_output(("git", "ls-files", "*.patch", "*.diff")).decode("utf-8").split() 206 patches = subprocess.check_output(("git", "ls-files", "recipes-*/**/*.patch", "recipes-*/**/*.diff")).decode("utf-8").split()
207 results = patchreview(patches) 207 results = patchreview(patches)
208 analyse(results, want_blame=args.blame, verbose=args.verbose) 208 analyse(results, want_blame=args.blame, verbose=args.verbose)
209 if args.histogram: 209 if args.histogram: