|
|
|
@ -17,6 +17,7 @@
|
|
|
|
|
import sys
|
|
|
|
|
from calculate.core.server.func import Action, Tasks
|
|
|
|
|
from calculate.lib.cl_lang import setLocalTranslate, getLazyLocalTranslate
|
|
|
|
|
from calculate.lib.cl_template import TemplatesError
|
|
|
|
|
from calculate.lib.utils.files import FilesError
|
|
|
|
|
from calculate.update.update import UpdateError
|
|
|
|
|
from calculate.lib.utils.portage import GitError
|
|
|
|
@ -30,7 +31,9 @@ class ClUpdateProfileAction(Action):
|
|
|
|
|
Действие обновление конфигурационных файлов
|
|
|
|
|
"""
|
|
|
|
|
# ошибки, которые отображаются без подробностей
|
|
|
|
|
native_error = (FilesError, UpdateError, GitError)
|
|
|
|
|
native_error = (FilesError,
|
|
|
|
|
TemplatesError,
|
|
|
|
|
UpdateError, GitError)
|
|
|
|
|
|
|
|
|
|
successMessage = __("The profile was successfully updated")
|
|
|
|
|
failedMessage = __("Failed to update the profile")
|
|
|
|
|