|
|
|
@ -51,7 +51,7 @@ from utils.files import (getModeFile, listDirectory, removeDir, typeFile,
|
|
|
|
|
pathJoin, readFile, readLinesFile, process)
|
|
|
|
|
from utils.mount import Mounts
|
|
|
|
|
from utils.tools import iterate_list, has_any
|
|
|
|
|
from datavars import DataVarsError, VariableError, SimpleDataVars
|
|
|
|
|
from datavars import DataVarsError, VariableError, CriticalError, SimpleDataVars
|
|
|
|
|
from calculate.lib.configparser import (ConfigParser, NoSectionError,
|
|
|
|
|
ParsingError)
|
|
|
|
|
|
|
|
|
@ -6109,6 +6109,10 @@ gettext -d cl_template "$*"
|
|
|
|
|
raise TemplatesError(
|
|
|
|
|
(_("Failed to use %s ") % formatTemplate) +
|
|
|
|
|
nameFileTemplate)
|
|
|
|
|
if (self.objVar.Get('cl_ebuild_phase') == 'compile' and
|
|
|
|
|
self.objVar.Get('cl_template_wrong_patch') == 'break'):
|
|
|
|
|
raise CriticalError(_("Failed to use patch ") +
|
|
|
|
|
nameFileTemplate)
|
|
|
|
|
raise TemplatesError(_("Failed to use patch ") +
|
|
|
|
|
nameFileTemplate)
|
|
|
|
|
elif (formatTemplate == 'diff' and
|
|
|
|
|