def update():
for organization in get_organization_list():
if not os.path.exists(os.path.join(get_env_path(organization),
'.git')):
info("Skip %s" % organization)
continue
info("Updating %s ..." % organization)
os.chdir(get_env_path(organization))
if not git('remote').strip():
info("No remotes are set for this organization, skipping")
continue
try:
vgit('pull')
except ErrorReturnCode:
fatal("Unable to update the organizations.")
run_galaxy_install(organization)
success("All the organizations have been updated.")
评论列表
文章目录