Merge duplicate INI sections from NSIS BOM bug
This commit is contained in:
parent
4367301a9e
commit
76a6390a2b
@ -347,7 +347,7 @@ class ConfigurationGetter(object):
|
|||||||
return path
|
return path
|
||||||
|
|
||||||
def _parseConfigFile(self, iniPath, createConfig=True):
|
def _parseConfigFile(self, iniPath, createConfig=True):
|
||||||
parser = SafeConfigParserUnicode()
|
parser = SafeConfigParserUnicode(strict=False)
|
||||||
if not os.path.isfile(iniPath):
|
if not os.path.isfile(iniPath):
|
||||||
if createConfig:
|
if createConfig:
|
||||||
open(iniPath, 'w').close()
|
open(iniPath, 'w').close()
|
||||||
@ -395,7 +395,7 @@ class ConfigurationGetter(object):
|
|||||||
changed = False
|
changed = False
|
||||||
if self._config['noStore']:
|
if self._config['noStore']:
|
||||||
return
|
return
|
||||||
parser = SafeConfigParserUnicode()
|
parser = SafeConfigParserUnicode(strict=False)
|
||||||
parser.readfp(codecs.open(iniPath, "r", "utf_8_sig"))
|
parser.readfp(codecs.open(iniPath, "r", "utf_8_sig"))
|
||||||
for section, options in list(self._iniStructure.items()):
|
for section, options in list(self._iniStructure.items()):
|
||||||
if not parser.has_section(section):
|
if not parser.has_section(section):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user