diff options
author | Ross Burton <ross.burton@intel.com> | 2018-10-15 21:30:37 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-10-16 20:35:43 +0100 |
commit | befef286520c9349d9555cb69ea4a7b540a0d096 (patch) | |
tree | 96dd1c13ee87c16eacac1c32215afebd81271743 /scripts | |
parent | b382e7ec346909730d3393a9799956c9f5a18ca1 (diff) | |
download | poky-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-x | scripts/contrib/patchreview.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/contrib/patchreview.py b/scripts/contrib/patchreview.py index 1086c95f67..a4d5ba6867 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: |