优化代码逻辑
This commit is contained in:
parent
a9cb53e225
commit
cc844e191b
|
@ -431,12 +431,6 @@ class InstallBackend():
|
|||
fresh_cache = Cache(rootdir=self.window_main.cache.rootdir)
|
||||
adjust_pkgs = [i.split("=")[0] for i in self.upgrade_data.adjust_pkgs]
|
||||
|
||||
#此种情况只有全部更新一个组,不需要考虑有没有安装完成的 直接走安装失败
|
||||
if self.now_upgrade.single_pkgs == [] and self.now_upgrade.upgrade_groups != []:
|
||||
# 信息插入数据库
|
||||
self.window_main.sqlite3_server.insert_info(upgrade_mode,[],self.now_upgrade.upgrade_groups,[],success,error_string, error_desc)
|
||||
return
|
||||
|
||||
#升级存在单包更新 失败后计算每一个包是否安装完成 相应判断进行插入
|
||||
if self.now_upgrade.single_pkgs != []:
|
||||
#获取调整包列表 去掉版本号
|
||||
|
|
Loading…
Reference in New Issue