修复数据库判断
This commit is contained in:
parent
399961cffd
commit
d2e85b85c4
|
@ -136,7 +136,7 @@ class Sqlite3Server(object):
|
|||
status = 'failed'
|
||||
|
||||
# 判断更新方式
|
||||
if "DistUpgradePartial" in mode: # 部分更新
|
||||
if mode == MODE_UPGRADEPARTIAL: # 部分更新
|
||||
# 判断更新包为单包或更新组
|
||||
pkgname = lists[0]
|
||||
if (pkgname) in self.window_main.update_list.local_upgrade_list:
|
||||
|
@ -161,7 +161,7 @@ class Sqlite3Server(object):
|
|||
self.insert_into_updateinfo(pkgname, pkgversion, pkgdescription, timestr, status, "1", errstr)
|
||||
# FIXME: 这里也需要, 发送插入数据库成功的信号
|
||||
self.window_main.dbusController.update_sqlite_single(pkgname, timestr)
|
||||
elif "DistUpgradeAll" in mode: # 系统升级
|
||||
elif mode == MODE_UPGRADEALL: # 系统升级
|
||||
# # insert signal deb first
|
||||
for i in self.window_main.update_list.local_upgrade_list['pkg_important_list']:
|
||||
try:
|
||||
|
|
Loading…
Reference in New Issue