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\
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
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'])
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
# 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
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]]
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.
"""
# 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
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