Salome HOME
spns #40779: support multi repositories
[tools/sat.git] / commands / compile.py
index afdad9b70f0373cc8ec628881a1d385767faf3e8..545a502b492dbc4bc6f726814baba18ab34c256b 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 config.APPLICATION.properties.github == 'yes' and src.product.product_test_property(p_info,"is_opensource", "no"):
+        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):
             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 config.APPLICATION.properties.github == 'yes' and src.product.product_test_property(p_info,"is_opensource", "no"):
+        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):
             log_step(logger, header, "ignored")
             logger.write("\n", 3, False)
             continue