From: Nabil Ghodbane Date: Mon, 15 Jul 2024 13:04:38 +0000 (+0200) Subject: spns #41965: Ensure one can run prepare from one archive which embeds SAT X-Git-Tag: V9_13_0~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=010e7b7d497050f53126d59c163ec2c296e000cf;p=tools%2Fsat.git spns #41965: Ensure one can run prepare from one archive which embeds SAT --- diff --git a/commands/package.py b/commands/package.py index eec437a..392703d 100644 --- a/commands/package.py +++ b/commands/package.py @@ -1243,11 +1243,13 @@ def create_project_for_src_package(config, tmp_working_dir, with_vcs, with_ftp): # finally add git repositories associated to this project for project in config.PROJECTS.projects: if 'git_server' in config.PROJECTS.projects[project]['git_info']: - git_servers=cfg.PROJECTS.projects[project]['git_info']['git_server'] - for git_server in git_servers: - print(git_server) - if 'git_info' in config.PROJECT and "git_server" in config.PROJECT: - + ff.write("\n# git servers") + ff.write("\ngit_info :\n{\n\tgit_server :\n\t{\n") + git_servers=config.PROJECTS.projects[project]['git_info']['git_server'] + for k in config.PROJECTS.projects[project]['git_info']['git_server'].keys(): + ff.write('\t\t' + k + ':' + config.PROJECTS.projects[project]['git_info']['git_server'][k].__str__() + '\n') + ff.write("\t}\n") + ff.write("}\n") ff.close() # Loop over the products to get there pyconf and all the scripts