File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -504,9 +504,6 @@ def update_latest_packages(pkgs_fn, bsp_packages_path):
504504 mirror_url = get_url_from_mirror_server (
505505 payload_pkgs_name_in_json , pkg ['ver' ])
506506
507- # print(os.getcwd())
508- # print(repo_path)
509-
510507 if mirror_url [0 ] != None :
511508 cmd = 'git remote set-url origin ' + mirror_url [0 ]
512509 git_cmd_exec (cmd , repo_path )
@@ -540,7 +537,7 @@ def pre_package_update():
540537 "Can't find file .config.Maybe your working directory isn't in bsp root now." )
541538 print ("if your working directory isn't in bsp root now,please change your working directory to bsp root." )
542539 print ("if your working directory is in bsp root now, please use menuconfig command to create .config file first." )
543- return
540+ return False
544541
545542 bsp_packages_path = os .path .join (bsp_root , 'packages' )
546543 if not os .path .exists (bsp_packages_path ):
@@ -746,7 +743,12 @@ def package_update(isDeleteOld=False):
746743 bsp_root = Import ('bsp_root' )
747744 env_root = Import ('env_root' )
748745 flag = True
746+
749747 sys_value = pre_package_update ()
748+
749+ if not sys_value :
750+ return
751+
750752 oldpkgs = sys_value [0 ]
751753 newpkgs = sys_value [1 ]
752754 pkgs_delete_error_list = sys_value [2 ]
You can’t perform that action at this time.
0 commit comments