Browse Source

update tools/pika-patch-tool.py.

Signed-off-by: 李昂 <liang6516@outlook.com>
李昂 2 years ago
parent
commit
b8ac907c57
1 changed files with 3 additions and 3 deletions
  1. 3 3
      tools/pika-patch-tool.py

+ 3 - 3
tools/pika-patch-tool.py

@@ -114,8 +114,8 @@ for patch in patches:
     for dir in search_dirs:
         file_name = os.path.basename(from_file)
         # find file
-        if is_found:
-            break
+        #if is_found:
+        #    break
 
         for root, apply_dirs, files in os.walk(dir):
             if file_name in files:
@@ -145,7 +145,7 @@ for patch in patches:
                     success_count += 1
                     success_list.append(apply_file)
                     print("\033[92mSuccessfully applied patch\033[0m", apply_file)
-
+                break
 
 print("\n\n===========================================\n\n")
 print(f"\033[92mTotal patches applied successfully: {success_count}\033[0m")