38
40
# don't crash on a corrupted config file
43
46
SafeConfigParser.write(self, f)
45
48
os.rename(tmpname, self.configfile)
48
54
def get_config(filename=SOFTWARE_CENTER_CONFIG_FILE):
49
55
""" get the global config class """
50
56
global _software_center_config
51
57
if not _software_center_config:
52
58
_software_center_config = SoftwareCenterConfig(filename)
53
59
return _software_center_config