Skip to content

Commit 3371e51

Browse files
committed
【增加】pkg --update 过程中,手动 CTRL+C 打断异常处理。
Signed-off-by: armink <[email protected]>
1 parent a532a40 commit 3371e51

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

cmds/cmd_package.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -683,8 +683,11 @@ def package_update():
683683
else:
684684
print("\nAll the selected packages have been downloaded successfully.\n")
685685

686-
update_latest_packages(read_back_pkgs_json, bsp_packages_path)
687-
686+
try:
687+
update_latest_packages(read_back_pkgs_json, bsp_packages_path)
688+
except KeyboardInterrupt:
689+
flag = 0
690+
688691
if flag:
689692
print ("Operation completed successfully.")
690693
else:

0 commit comments

Comments
 (0)