|
|
|
@ -3566,6 +3566,7 @@ class templateFunction(_error, _warning, _shareTemplate, _shareTermsFunction):
|
|
|
|
|
Check pkg name (in /var/db/pkg,/usr/portage,/var/lib/layman/calculate
|
|
|
|
|
and other overlays)
|
|
|
|
|
"""
|
|
|
|
|
return True
|
|
|
|
|
category,spl,pkgname = package.partition('/')
|
|
|
|
|
pkgname, spl, slot = pkgname.partition(":")
|
|
|
|
|
# check installed package in system
|
|
|
|
@ -5831,7 +5832,10 @@ gettext -d cl_template "$*"
|
|
|
|
|
# Флаг копирования шаблона в конфигурационный файл
|
|
|
|
|
flagCopyTemplate = True
|
|
|
|
|
# Тип шаблона бинарный или текстовый
|
|
|
|
|
templateFileType = self.getTemplateType()
|
|
|
|
|
if self.textTemplate[:11] == "# Calculate":
|
|
|
|
|
templateFileType = "text"
|
|
|
|
|
else:
|
|
|
|
|
templateFileType = self.getTemplateType()
|
|
|
|
|
headerLine = self.getHeaderText(self.textTemplate)
|
|
|
|
|
if headerLine:
|
|
|
|
|
moduleParam = filter(lambda x:x.startswith('env='),
|
|
|
|
|