diff --git a/pym/calculate/lib/cl_template.py b/pym/calculate/lib/cl_template.py index 23beb92..46e83eb 100644 --- a/pym/calculate/lib/cl_template.py +++ b/pym/calculate/lib/cl_template.py @@ -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='),