Skip to content

Commit 78c531c

Browse files
committed
【修复】获取包镜像 URL 失败,可能导致更新出错的问题。
Signed-off-by: armink <[email protected]>
1 parent 3371e51 commit 78c531c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cmds/cmd_package.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,8 @@ def update_latest_packages(read_back_pkgs_json, bsp_packages_path):
436436
update_submodule(repo_path)
437437

438438
# recover origin url to the path which get from packages.json file
439-
cmd = 'git remote set-url origin ' + package.get_url(pkg['ver'])
439+
if package.get_url(pkg['ver']) :
440+
cmd = 'git remote set-url origin ' + package.get_url(pkg['ver'])
440441
os.system(cmd)
441442
os.chdir(beforepath)
442443
print("==============================> %s update done \n" %

0 commit comments

Comments
 (0)