]> SALOME platform Git repositories - tools/sat.git/commitdiff
Salome HOME
spns #40779: support multi repositories
authorNabil Ghodbane <nabil.ghodbane@cea.fr>
Sat, 4 May 2024 14:27:57 +0000 (16:27 +0200)
committerNabil Ghodbane <nabil.ghodbane@cea.fr>
Sat, 4 May 2024 14:27:57 +0000 (16:27 +0200)
commands/compile.py
commands/config.py
commands/package.py
commands/prepare.py
src/__init__.py
src/environment.py
src/product.py

index 545a502b492dbc4bc6f726814baba18ab34c256b..0c5fd5e8c3b09b4f3aad91592648ebd8f0d16dcb 100644 (file)
@@ -168,7 +168,7 @@ def compile_all_products(sat, config, options, products_infos, all_products_dict
         if src.product.product_is_salome(p_info):
             check_salome_configuration=True
         
-        if src.product.product_test_property(p_info,"is_opensource", "no") and not src.check_git_repository_has_non_opensource(config, config.APPLICATION.properties.git_server):
+        if src.product.product_test_property(p_info,"is_opensource", "no") and not src.check_git_server_has_non_opensource(config, config.APPLICATION.properties.git_server):
             continue
         # nothing to clean for native or fixed products
         if (not src.product.product_compiles(p_info)) or\
@@ -277,7 +277,7 @@ def compile_all_products(sat, config, options, products_infos, all_products_dict
             log_step(logger, header, "ignored")
             logger.write("\n", 3, False)
             continue
-        if src.product.product_test_property(p_info,"is_opensource", "no") and not src.check_git_repository_has_non_opensource(config, config.APPLICATION.properties.git_server):
+        if src.product.product_test_property(p_info,"is_opensource", "no") and not src.check_git_server_has_non_opensource(config, config.APPLICATION.properties.git_server):
             log_step(logger, header, "ignored")
             logger.write("\n", 3, False)
             continue
index fa6a8097846df2c7468f324545e788dfeedffdcc..eec74a345ce3178e3a87cd5fabcd12ef0545efc4 100644 (file)
@@ -148,7 +148,6 @@ class ConfigManager:
         var['datadir'] =  osJoin(var['salometoolsway'], 'data')
         if datadir is not None:
             var['datadir'] = datadir
-
         var['personalDir'] =  osJoin(os.path.expanduser('~'), '.salomeTools')
         src.ensure_path_exists(var['personalDir'])
 
index 1eb702b0122b91de376b0a69169730150b535969..61b518d810502d7b8a689f82535ec1aeb5c6d8e3 100644 (file)
@@ -686,7 +686,7 @@ def binary_package(config, logger, options, tmp_working_dir):
         if src.get_property_in_product_cfg(prod_info, "not_in_package") == "yes":
             continue
 
-        if src.product.product_is_not_opensource(prod_info) and src.check_git_repository_has_non_opensource( cfg, git_server):
+        if src.product.product_is_not_opensource(prod_info) and src.check_git_server_has_non_opensource( cfg, git_server):
             continue
 
         # Add the sources of the products that have the property
@@ -1000,7 +1000,7 @@ def get_archives(config, logger):
         # skip product if git server misses non opensource products
         is_not_prod_opensource       = src.product.product_is_not_opensource(p_info)
         git_server = src.get_git_server(config,logger)
-        has_git_server_non_opensource = src.check_git_repository_has_non_opensource( config, git_server)
+        has_git_server_non_opensource = src.check_git_server_has_non_opensource( config, git_server)
         if has_git_server_non_opensource and is_not_prod_opensource:
             logger.warning("%s is a closed-source software and is not available on %s" % (product, git_server))
             continue
index c86f76902ebfde2652cf0572192c0e79ba2ec838..c86d5d6f6ec4d8830ba1ab356b6e63103c56b004 100644 (file)
@@ -100,7 +100,7 @@ def run(args, runner, logger):
 
     git_server = src.get_git_server(runner.cfg,logger)
 
-    if src.check_git_repository_has_non_opensource( runner.cfg, git_server):
+    if src.check_git_server_has_non_opensource( runner.cfg, git_server):
         not_opensource_products = [p for p in products_infos if src.product.product_is_not_opensource(p[1])]
         listProd = [p for p in listProd if p not in [name for name, tmp in not_opensource_products]]
 
index af2ef896150716c276468dc84cd3c3049da02bb7..bbad2a79e04fc28b9558f57df69f639d0473db10 100644 (file)
@@ -623,8 +623,8 @@ def activate_mesa_property(config):
         config.APPLICATION.addMapping( 'properties', pyconf.Mapping(), None )
     config.APPLICATION.properties.use_mesa="yes"
 
-def check_git_repository_has_non_opensource( config, the_git_server):
-    """check that the git repository contains non public repositories
+def check_git_server_has_non_opensource( config, the_git_server):
+    """check that the git repositories server contains non public repositories
     :param config class 'common.pyconf.Config': The config.
     :param logger Logger: The logging instance to use for the prints.
     """
index 525c4c5ed089e90224a302a7ec0e550efd365474..f8df3004b828de878ee4a69d878431c5128d25ed 100644 (file)
@@ -606,8 +606,8 @@ class SalomeEnviron:
 
         # skip product if git server misses non opensource products
         is_not_prod_opensource       = src.product.product_is_not_opensource(pi)
-        git_server= get_fit_server(self.cfg, logger)
-        has_git_server_non_opensource = src.check_git_repository_has_non_opensource( self.cfg, git_server)
+        git_server= get_git_server(self.cfg, logger)
+        has_git_server_non_opensource = src.check_git_server_has_non_opensource( self.cfg, git_server)
         if has_git_server_non_opensource and is_not_prod_opensource:
             logger.warning("%s is a closed-source software and is not available on %s" % (pi.name, git_server))
             return
index a2f80f7035e0e45f0b2dbbd82b1ecaf5dc878d4e..5bef97dcc0f3f2651fd9b2661cbf7475881dfa71 100644 (file)
@@ -819,7 +819,7 @@ def get_products_list(options, cfg, logger):
                 else:
                     git_server =  cfg.APPLICATION.properties.git_server
 
-                has_git_server_non_opensource = src.check_git_repository_has_non_opensource( cfg, git_server)
+                has_git_server_non_opensource = src.check_git_server_has_non_opensource( cfg, git_server)
                 if has_git_server_non_opensource and not is_prod_opensource:
                     logger.warning("%s is a closed-source software and is not available on %s" % (product, git_server))
                     continue