# Define all possible option for patch command : sat patch <options>
parser = src.options.Options()
parser.add_option('p', 'products', 'list2', 'products',
- _('products to get the sources. This option can be'
+ _('Optional: products to get the sources. This option can be'
' passed several time to get the sources of several products.'))
def apply_patch(config, product_info, max_product_name_len, logger):
:rtype: str
'''
return _("The patch command apply the patches on the sources of "
- "the application products if there is any")
+ "the application products if there is any.\n\nexample:\nsat "
+ "patch SALOME-master --products qt,boost")
def run(args, runner, logger):
'''method that is called when salomeTools is called with patch parameter.
good_result = 0
for __, product_info in products_infos:
# Apply the patch
- return_code, patch_res = apply_patch(runner.cfg, product_info, max_product_name_len, logger)
+ return_code, patch_res = apply_patch(runner.cfg,
+ product_info,
+ max_product_name_len,
+ logger)
logger.write(patch_res, 1, False)
if return_code:
good_result += 1