Merge branch 'backend_manual' into 'backend_uu'

增加uu配置项

See merge request kylin-desktop/update-manager-group/kylin-system-updater!442
This commit is contained in:
wangsong 2022-06-16 08:04:38 +00:00
commit cc8f74d736
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

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