mirror of
https://git.yoctoproject.org/poky
synced 2026-09-19 09:49:33 +02:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
b382e7ec34
commit
befef28652
@@ -203,7 +203,7 @@ if __name__ == "__main__":
|
|||||||
|
|
||||||
if args.directory:
|
if args.directory:
|
||||||
os.chdir(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)
|
results = patchreview(patches)
|
||||||
analyse(results, want_blame=args.blame, verbose=args.verbose)
|
analyse(results, want_blame=args.blame, verbose=args.verbose)
|
||||||
if args.histogram:
|
if args.histogram:
|
||||||
|
|||||||
Reference in New Issue
Block a user