修复当出现系统的cache破损时出现程序奔溃的问题
This commit is contained in:
parent
8f1e858edf
commit
716c39ab53
|
@ -155,6 +155,8 @@ class UpdateManager():
|
|||
header = None
|
||||
desc = None
|
||||
try:
|
||||
self.update_list = UpdateList(self)
|
||||
|
||||
#第一次进入 之后update不进入
|
||||
if self.cache is None:
|
||||
self.cache = MyCache(None)
|
||||
|
@ -180,8 +182,6 @@ class UpdateManager():
|
|||
_success = False
|
||||
return _success,header,desc
|
||||
|
||||
self.update_list = UpdateList(self)
|
||||
|
||||
'''1、
|
||||
dist-upgrade 标记在此处进行
|
||||
来判断将要删除的包 如果存在要删除的break的包的话 会从dist-upgrade切换到upgrade 目前此功能不使用 默认使用dist-upgrade
|
||||
|
|
Loading…
Reference in New Issue