]> SALOME platform Git repositories - tools/sat.git/commitdiff
Salome HOME
spns #41965: Ensure one can run prepare from one archive which embeds SAT
authorNabil Ghodbane <nabil.ghodbane@cea.fr>
Mon, 15 Jul 2024 13:04:38 +0000 (15:04 +0200)
committerNabil Ghodbane <nabil.ghodbane@cea.fr>
Mon, 15 Jul 2024 13:04:38 +0000 (15:04 +0200)
commands/package.py

index eec437a05d52d572925665da64e700da4aebe748..392703d4e55b201c3ea0273c9bd92b4ef820d677 100644 (file)
@@ -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