res_prod, len_end_line, error_step = upgrade_product(
sat, p_name_info, config, options, logger, header, len_end_line
)
+ if res_prod > 0:
+ logger.write(
+ src.printcolors.printcError(
+ _(
+ "\nERROR : the product does not compile, retrying after clean it."
+ )
+ )
+ )
+ sat.clean(
+ config.VARS.application
+ + " --products "
+ + p_name
+ + " --install"
+ + " --build",
+ batch=True,
+ verbose=0,
+ logger_add_link=logger,
+ )
+ res_prod, len_end_line, error_step = upgrade_product(
+ sat, p_name_info, config, options, logger, header, len_end_line
+ )
if res_prod != 0:
res += 1