Skip to content

Commit 854545d

Browse files
committed
【完善】:下载错误软件包的提示信息
1 parent 1060e17 commit 854545d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

cmds/cmd_package.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -279,15 +279,13 @@ def install_pkg(env_root, bsp_root, pkg):
279279
execute_command(cmd, cwd=repo_path)
280280
except Exception, e:
281281
print("\nFailed to download software package with git. Please check the network connection.")
282-
# sys.exit(0)
283282
return False
284283

285284
if upstream_change_flag:
286285
cmd = 'git remote set-url origin ' + url_from_json
287286
execute_command(cmd, cwd=repo_path)
288287

289-
# If there is a .gitmodules file in the package, prepare to update the
290-
# submodule.
288+
# If there is a .gitmodules file in the package, prepare to update submodule.
291289
submod_path = os.path.join(repo_path, '.gitmodules')
292290
if os.path.isfile(submod_path):
293291
print("Start to update submodule")
@@ -819,8 +817,10 @@ def package_update(isDeleteOld=False):
819817

820818
# Give hints based on the success of the download.
821819
if len(pkgs_download_fail_list):
822-
print("Package download failed pkgs_download_fail_list: %s \n" %
823-
pkgs_download_fail_list)
820+
print("\nPackage download failed list:" )
821+
for item in pkgs_download_fail_list:
822+
print(item)
823+
824824
print("You need to reuse the <pkgs -update> command to download again.")
825825

826826
# update pkgs.json and SConscript

0 commit comments

Comments
 (0)