From: Nabil Ghodbane Date: Sat, 4 May 2024 14:53:42 +0000 (+0200) Subject: spns #40779: support multi repositories X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=cbf687cf83c51063d33f18339c947a6fa1fe8aa7;p=tools%2Fsat.git spns #40779: support multi repositories --- diff --git a/commands/source.py b/commands/source.py index b8b8da5..a99a5b3 100644 --- a/commands/source.py +++ b/commands/source.py @@ -93,18 +93,18 @@ def get_source_from_git(config, repo_git = None git_server = src.get_git_server(config,logger) product_file = product_info.from_file.split('/').pop() - if 'git_info' in product_info and 'repo_name' in product_info.git_info: - if git_server in product_info.git_info.repo_name.keys(): - repo_git = product_info.git_info.repo_name[git_server] + if 'git_info' in product_info and 'repositories' in product_info.git_info: + if git_server in product_info.git_info.repositories.keys(): + repo_git = product_info.git_info.repositories[git_server] elif 'properties' in product_info and 'is_opensource' in product_info.properties and product_info.properties.is_opensource == 'yes' : - for git_server in product_info.git_info.repo_name.keys(): + for git_server in product_info.git_info.repositories.keys(): if git_server in config.VARS.opensource_repositories_servers: - repo_git = product_info.git_info.repo_name[git_server] + repo_git = product_info.git_info.repositories[git_server] break elif 'properties' in product_info and not 'is_opensource' in product_info.properties: - for git_server in product_info.git_info.repo_name.keys(): + for git_server in product_info.git_info.repositories.keys(): if git_server in config.VARS.opensource_repositories_servers: - repo_git = product_info.git_info.repo_name[git_server] + repo_git = product_info.git_info.repositories[git_server] logger.warning("Using opensource repository ({}) for product {}".format(git_server, product_info.name)) break else: