Skip to content

Commit 85d907e

Browse files
committed
Merge remote-tracking branch 'remotes/rtt/develop'
2 parents ad8edc6 + 78c531c commit 85d907e

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)