1
0
mirror of https://github.com/altlinux/gpupdate.git synced 2025-03-21 18:50:38 +03:00

To avoid conflicts with granting access

This commit is contained in:
Valery Sinelnikov 2024-01-12 15:47:12 +04:00
parent 12bd7a5b51
commit 682797fb90
3 changed files with 25 additions and 14 deletions

View File

@ -75,14 +75,21 @@ class Ini_file:
def act(self):
if self.action == FileAction.CREATE:
self._create_action()
if self.action == FileAction.UPDATE:
self._create_action()
if self.action == FileAction.DELETE:
self._delete_action()
if self.action == FileAction.REPLACE:
self._create_action()
try:
if self.action == FileAction.CREATE:
self._create_action()
if self.action == FileAction.UPDATE:
self._create_action()
if self.action == FileAction.DELETE:
self._delete_action()
if self.action == FileAction.REPLACE:
self._create_action()
except Exception as exc:
logdata = dict()
logdata['action'] = self.action
logdata['exc'] = exc
log('W23', logdata)
def check_path(path_to_check, username = None):
'''

View File

@ -735,11 +735,11 @@ msgstr "Запуск применение настроек ini файлов дл
msgid "Running ini applier for machine will not be started"
msgstr "Применение настроек ini файлов для машины не будет запущено"
msgid "Running ini applier for user in administrator context"
msgstr "Запуск применение настроек ini файлов для пользователя в контексте администратора"
msgid "Running ini applier for user in user context"
msgstr "Запуск применение настроек ini файлов для пользователя в контексте пользователя"
msgid "Running ini applier for user in administrator context will not be started"
msgstr "Применение настроек ini файлов для пользователя в контексте администратора не будет запущено"
msgid "Running ini applier for user in user context will not be started"
msgstr "Применение настроек ini файлов для пользователя в контексте пользователя не будет запущено"
msgid "Ini-file path not recognized"
msgstr "Путь к ini-файлу не распознан"
@ -907,6 +907,9 @@ msgstr "Конфигурационный файл для обоев не най
msgid "The user setting was not installed, conflict with computer setting."
msgstr "Пользовательская настройка не была установлена, конфликт с настройкой компьютера."
msgid "Action for ini file failed"
msgstr "Не удалось выполнить действие для INI-файла"
# Fatal
msgid "Unable to refresh GPO list"
msgstr "Невозможно обновить список объектов групповых политик"

View File

@ -279,8 +279,8 @@ def debug_code(code):
debug_ids[170] = 'Running File copy applier for user in administrator context will not be started'
debug_ids[171] = 'Running ini applier for machine'
debug_ids[172] = 'Running ini applier for machine will not be started'
debug_ids[173] = 'Running ini applier for user in administrator context'
debug_ids[174] = 'Running ini applier for user in administrator context will not be started'
debug_ids[173] = 'Running ini applier for user in user context'
debug_ids[174] = 'Running ini applier for user in user context will not be started'
debug_ids[175] = 'Ini-file path not recognized'
debug_ids[176] = 'Ini-file is not readable'
debug_ids[177] = 'Saving information about ini-file'
@ -342,6 +342,7 @@ def warning_code(code):
warning_ids[20] = 'Error connecting to server'
warning_ids[21] = 'Wallpaper configuration file not found'
warning_ids[22] = 'The user setting was not installed, conflict with computer setting.'
warning_ids[23] = 'Action for ini file failed'
return warning_ids.get(code, 'Unknown warning code')