修复错误

This commit is contained in:
wangsong 2022-06-17 02:39:22 +08:00
parent f993fb4416
commit d9a46b6f67
4 changed files with 4 additions and 4 deletions

View File

@ -57,7 +57,7 @@ class UpdateList():
for base in data_dirs.split(':')]
if self.parent.options.close_filter == False and self.parent.source_info.is_disc == False and \
self.parent.configs_cover.getWithDefault("SystemStatus", "close_source_filter", False) == False :
self.parent.configs_cover.getWithDefault("SystemStatusCover", "close_source_filter", False) == False :
#开启原过滤
self.close_filter = False
self.fu = UpdateListFilterCache(self.parent)

View File

@ -54,7 +54,7 @@ class UpdateManager():
#配置文件
self.configs_uncover = UpgradeConfig("/var/lib/kylin-system-updater/",defaults_dir="system-updater-defaults.conf")
self.configs_cover = UpgradeConfig("system-updater-coverable.conf")
self.configs_cover = UpgradeConfig(name = "system-updater-coverable.conf")
self.uuconfigs = UpgradeConfig(datadir = "/var/lib/unattended-upgrades/", name = "unattended-upgrades-policy.conf")

View File

@ -500,7 +500,7 @@ class InstallBackend():
def _self_upgrade_finished(self,success,error_string='',error_desc=''):
if success:
if self.window_main.configs_cover.getWithDefault("SystemStatus", "priority_upgrade_restart", False) == True:
if self.window_main.configs_cover.getWithDefault("SystemStatusCover", "priority_upgrade_restart", False) == True:
error_string = get_error_string_from_enum(PRIORITY_UPGRADE_SUCCCESSED)
if self.window_main.APTD_PKG_NAME in self.now_upgrade.upgrade_content:
self.window_main.dbusController.UpdateDetectFinished(False,[self.window_main.BACKEND_PKG_NAME],error_string,'')

View File

@ -1,4 +1,4 @@
[SystemStatus]
[SystemStatusCover]
close_source_filter = False
priority_upgrade_restart = True