# Only a name is given. Search in the default directory
script_path = src.find_file_in_lpath(script_name, config.PATHS.PRODUCTPATH, "compil_scripts")
if not script_path:
- msg = _("Compilation script not found: %s") % script_name
+ msg = _("Compilation script %s not found in") % script_name
DBG.tofix(msg, config.PATHS.PRODUCTPATH, True) # say where searched
- raise src.SatException(msg)
+ # avoid stop if sat prepare, script could be included in sources, only warning
+ # raise src.SatException(msg)
+ script_path = "*** Not Found: %s" % script_name
prod_info.compil_script = script_path
# Check that the script is executable
- if not os.access(prod_info.compil_script, os.X_OK):
+ if os.path.exists(prod_info.compil_script) and not os.access(prod_info.compil_script, os.X_OK):
#raise src.SatException(
# _("Compilation script cannot be executed: %s") %
# prod_info.compil_script)
# just as warning, problem later...
- DBG.tofix("Compilation script is not execute mode file", prod_info.compil_script, True)
+ DBG.tofix("Compilation script file is not in 'execute mode'", prod_info.compil_script, True)
# Get the full paths of all the patches
if product_has_patches(prod_info):