增加uu配置项

This commit is contained in:
wangsong 2022-06-17 02:03:53 +08:00
parent 8a61ba2c5e
commit 1da926904d
2 changed files with 9 additions and 1 deletions

View File

@ -171,6 +171,10 @@ class UpdateManagerDbusController(dbus.service.Object):
@dbus.service.method(UPDATER_DBUS_INTERFACE,in_signature='ss',out_signature='bs')
def GetConfigValue(self,section, option):
try:
if self.parent.configs_cover.has_section(str(section)) and self.parent.configs_cover.has_option(str(section),str(option)):
value = str(self.parent.configs_cover.get(str(section), str(option)))
logging.info(COLORMETHOR_PREFIX+'Method'+COLORLOG_SUFFIX+" GetConfigValue section:%s option:%s value:%s ...",section,option,value)
return True,value
if self.parent.configs_uncover.has_section(str(section)) and self.parent.configs_uncover.has_option(str(section),str(option)):
value = str(self.parent.configs_uncover.get(str(section), str(option)))
logging.info(COLORMETHOR_PREFIX+'Method'+COLORLOG_SUFFIX+" GetConfigValue section:%s option:%s value:%s ...",section,option,value)

View File

@ -4,4 +4,8 @@ priority_upgrade_restart = True
[ConfigPkgStatus]
check_resover_remove = False
check_frontend_pkg = True
check_frontend_pkg = True
[AutoUpgradeConfig]
upgradeInterval = 7
downloadRandom = 180