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

Changing the log in the create_dconf_ini_file method

This commit is contained in:
Данила Скачедубов 2024-01-23 13:24:05 +04:00 committed by Valery Sinelnikov
parent 1e267f5cb6
commit 9117dddcee
3 changed files with 7 additions and 2 deletions

View File

@ -864,6 +864,9 @@ msgstr "Формирование словаря с ключами и значе
msgid "No entry found for the specified path"
msgstr "Не найдено записей по указанному пути"
msgid "Creating an ini file with policies for dconf"
msgstr "Создание ini-фала с политиками для dconf"
# Debug_end
# Warning

View File

@ -319,6 +319,8 @@ def debug_code(code):
debug_ids[206] = 'Successfully updated dconf database'
debug_ids[207] = 'Creating a dictionary with keys and values from the dconf database'
debug_ids[208] = 'No entry found for the specified path'
debug_ids[209] = 'Creating an ini file with policies for dconf'
return debug_ids.get(code, 'Unknown debug code')
def warning_code(code):

View File

@ -514,8 +514,8 @@ def create_dconf_ini_file(filename, data):
file.write(f'{key} = "{value}"\n')
file.write('\n')
logdata = dict()
logdata['filename'] = filename
log('D177', logdata)
logdata['path'] = filename
log('D209', logdata)
Dconf_registry.dconf_update()
def convert_string_dconf(input_string):