'skip' value of the 'append' parameter is available for template files now.

master
Иванов Денис 4 years ago
parent 725c0f737d
commit 4323d334ab

@ -594,6 +594,7 @@ class TemplateWrapper:
def add_to_contents(self, file_md5=None) -> None:
'''Метод для добавления целевого файла в CONTENTS.'''
print("add to contents")
if self.target_package is None:
return
@ -1103,8 +1104,6 @@ class TemplateExecutor:
self.calculate_config_file.remove_file(
template_object.target_path)
# Обновляем CONTENTS.
if template_object.protected:
if template_object.parameters.unbound:
template_object.remove_from_contents()
else:
@ -2394,6 +2393,7 @@ class DirectoryProcessor:
not template_parameters.exec):
template_parameters.set_parameter({'append': 'join'})
if template_parameters.append != 'skip':
# Выполняем действия, указанные в шаблоне.
target_file_path = self._execute_template(
target_file_path,

@ -1 +1 @@
{% calculate merge = 'app-editors/vim' -%}
{% calculate append = "skip", merge = 'app-editors/vim' -%}

Loading…
Cancel
Save