]> 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 12:56:00 +0000 (14:56 +0200)
committerNabil Ghodbane <nabil.ghodbane@cea.fr>
Mon, 15 Jul 2024 12:56:00 +0000 (14:56 +0200)
commands/package.py
src/product.py

index 050df51132d91cd254ac91fe3fe58397d9260028..eec437a05d52d572925665da64e700da4aebe748 100644 (file)
@@ -1240,6 +1240,13 @@ def create_project_for_src_package(config, tmp_working_dir, with_vcs, with_ftp):
         ff.write("\n# Where to search for licences\n")
         ff.write(licence_path)
 
+    # 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.close()
 
index b6446810a32bc6d2f193ea9fe81f596957752e97..8f49eb1ee31266be4f6aab576f976ce10eaf0b73 100644 (file)
@@ -800,15 +800,16 @@ def get_products_list(options, cfg, logger):
         products=[]
         for product in cfg.APPLICATION.products.keys():
             prod_info = get_product_config(cfg, product)
+            git_server = None
             if prod_info is None:
                 logger.error("%s does not have associated information" % (product))
                 continue
             if 'get_source' in prod_info and prod_info.get_source == 'git':
                 git_server = src.get_git_server(cfg,logger)
-            else:
+            elif 'default_git_server_dev' in cfg.VARS.keys():
                 git_server =  cfg.VARS['default_git_server_dev']
 
-            if src.product.product_is_not_opensource(prod_info) and not src.git_server_has_all_repositories(cfg, git_server):
+            if git_server is not None and src.product.product_is_not_opensource(prod_info) and not src.git_server_has_all_repositories(cfg, git_server):
                 logger.warning("%s is a closed-source software and is not available on %s" % (product, git_server))
                 logger.flush()
                 continue