From 15ecb1cf62ffb746ea54305b8753a62f9f15ff0f Mon Sep 17 00:00:00 2001 From: jj Date: Thu, 28 Aug 2025 18:53:49 +0000 Subject: [PATCH] patches/utils: always dry run with fuzz=0 --- utils/patches.py | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/utils/patches.py b/utils/patches.py index f99bafdf..3e1a2fee 100755 --- a/utils/patches.py +++ b/utils/patches.py @@ -91,9 +91,16 @@ def dry_run_check(patch_path, tree_path, patch_bin_path=None): Returns the status code, stdout, and stderr of patch --dry-run """ cmd = [ - str(find_and_check_patch(patch_bin_path)), '-p1', '--ignore-whitespace', '-i', - str(patch_path), '-d', - str(tree_path), '--no-backup-if-mismatch', '--dry-run' + str(find_and_check_patch(patch_bin_path)), + '-p1', + '--ignore-whitespace', + '-i', + str(patch_path), + '-d', + str(tree_path), + '--no-backup-if-mismatch', + '--dry-run', + '--fuzz=0', ] result = subprocess.run(cmd, stdout=subprocess.PIPE,