From 513621d03d4c98d29cbec50a7815b261f300c5d5 Mon Sep 17 00:00:00 2001 From: Xuanwo Date: Tue, 18 Jun 2024 18:27:19 +0800 Subject: [PATCH] Fix verify Signed-off-by: Xuanwo --- scripts/verify.py | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/scripts/verify.py b/scripts/verify.py index 290db29df4b8..ac2ff73c485e 100755 --- a/scripts/verify.py +++ b/scripts/verify.py @@ -139,16 +139,18 @@ def build_java_binding(dir): check_license(dir) check_notice(dir) - if check_rust(): - build_core(dir) - else: - print( - "Cargo is not found, please check if rust development has been setup correctly" - ) - print("Visit https://www.rust-lang.org/tools/install for more information") - sys.exit(1) - - if check_java(): - build_java_binding(dir) - else: - print("Java is not found, skipped building java binding") + if "core" in dir.name: + if check_rust(): + build_core(dir) + else: + print( + "Cargo is not found, please check if rust development has been setup correctly" + ) + print("Visit https://www.rust-lang.org/tools/install for more information") + sys.exit(1) + + if "java" in dir.name: + if check_java(): + build_java_binding(dir) + else: + print("Java is not found, skipped building java binding")