提前初始化updatelist,fix找不找变量的问题

This commit is contained in:
luoxueyi 2021-11-01 16:45:01 +08:00
parent 19181ab7b4
commit 76984f6750
1 changed files with 2 additions and 1 deletions

View File

@ -199,6 +199,8 @@ class UpdateManager():
_success = False
return _success,header,desc
self.update_list = UpdateList(self)
#更新important.list
if self.options.no_update_source is False:
_success,header,desc = self.dbusController._on_update_important_list()
@ -210,7 +212,6 @@ class UpdateManager():
if _success == False:
return _success,header,desc
self.update_list = UpdateList(self)
try:
_success,header,desc = self.update_list.update(self.cache)
except SystemError as e: