:rtype: str
"""
return _(
- "The update command gets the sources of "
+ "The update command updates the sources under git and gets the sources of "
"the application products and apply the patches if there is any."
"\n\nexample:\nsat update SALOME-master --products KERNEL,GUI"
)
msg = _("Get the sources of the products ...")
self.logger.write(msg, 5)
args_source = self.args_appli + args_product_to_prepare_opt
- res_source = self.runner.source(args_source, logger_add_link=self.logger)
+ res_source = self.runner.source_update(args_source, logger_add_link=self.logger)
if res_source == 0:
self.logger.write("%s\n" % src.printcolors.printc(src.OK_STATUS), 5)
else:
def git_checkout(tag, git_options, where, logger, environment=None):
'''Checkout sources from a git repository.
87
- :param from_what str: The remote git repository.
:param tag str: The tag.
:param git_options str: git options
:param where str: The path where to extract.
cmd=cmd.replace('date_format', '"%ai"')
cmd=cmd.replace('--no-guess ', '')
- launch_command(cmd, logger, where, environment)
+ isOk = launch_command(cmd, logger, where, environment)
+ return isOk
def git_pull(from_what, tag, git_options, where, logger, environment=None):
'''Checkout sources from a git repository.
cmd = cmd % {'git_options': git_options, 'remote': from_what, 'tag': tag, 'where': str(where), 'where_git': where_git}
cmd=cmd.replace('date_format', '"%ai"')
- launch_command(cmd, logger, where, environment)
+ isOk = launch_command(cmd, logger, where, environment)
+ return isOk
def launch_command(cmd, logger, where, environment):