From 010e7b7d497050f53126d59c163ec2c296e000cf Mon Sep 17 00:00:00 2001 From: Nabil Ghodbane Date: Mon, 15 Jul 2024 15:04:38 +0200 Subject: [PATCH] spns #41965: Ensure one can run prepare from one archive which embeds SAT --- commands/package.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) 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 -- 2.39.2