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

Added keylist handling when generating firefox settings

This commit is contained in:
Valery Sinelnikov 2022-11-16 13:47:48 +04:00
parent fe4a5fa78c
commit 0e3d3598f1

View File

@ -76,6 +76,7 @@ class firefox_applier(applier_frontend):
'''
Collect dictionaries from registry keys into a general dictionary
'''
excp = ['SOCKSVersion']
counts = dict()
for it_data in firefox_keys:
branch = counts
@ -90,7 +91,10 @@ class firefox_applier(applier_frontend):
branch = branch.setdefault(part, {})
#dictionary key value initialization
if it_data.type == 4:
branch[parts[-1]] = self.get_boolean(it_data.data)
if it_data.valuename in excp:
branch[parts[-1]] = int(it_data.data)
else:
branch[parts[-1]] = self.get_boolean(it_data.data)
else:
branch[parts[-1]] = str(it_data.data).replace('\\', '/')
#Cases when it is necessary to create lists in a dictionary