# Define all possible option for prepare command : sat prepare <options>
parser = src.options.Options()
parser.add_option('p', 'products', 'list2', 'products',
- _('products to prepare. This option can be'
+ _('Optional: products to prepare. This option can be'
' passed several time to prepare several products.'))
parser.add_option('f', 'force', 'boolean', 'force',
- _("force to prepare the products in development mode."))
-parser.add_option('f', 'force_patch', 'boolean', 'force_patch',
- _("force to apply patch to the products in development mode."))
+ _("Optional: force to prepare the products in development mode."))
+parser.add_option('', 'force_patch', 'boolean', 'force_patch',
+ _("Optional: force to apply patch to the products in development mode."))
def get_products_list(options, cfg, logger):
'''method that gives the product list with their informations from
:rtype: str
'''
return _("The prepare command gets the sources of "
- "the application products and apply the patches if there is any.")
+ "the application products and apply the patches if there is any."
+ "\n\nexample:\nsat prepare SALOME-master --products KERNEL,GUI")
def run(args, runner, logger):
'''method that is called when salomeTools is called with prepare parameter.
msg = _("Clean the source directories ...")
logger.write(msg, 3)
logger.flush()
- res_clean, __ = runner.clean(args_clean, batch=True, verbose = 0,
+ res_clean = runner.clean(args_clean, batch=True, verbose = 0,
logger_add_link = logger)
if res_clean == 0:
logger.write('%s\n' % src.printcolors.printc(src.OK_STATUS), 3)
if do_source:
msg = _("Get the sources of the products ...")
logger.write(msg, 5)
- res_source, __ = runner.source(args_source,
+ res_source = runner.source(args_source,
logger_add_link = logger)
if res_source == 0:
logger.write('%s\n' % src.printcolors.printc(src.OK_STATUS), 5)
if do_patch:
msg = _("Patch the product sources (if any) ...")
logger.write(msg, 5)
- res_patch, __ = runner.patch(args_patch,
+ res_patch = runner.patch(args_patch,
logger_add_link = logger)
if res_patch == 0:
logger.write('%s\n' % src.printcolors.printc(src.OK_STATUS), 5)