修改列表

This commit is contained in:
luoxueyi 2021-11-16 16:52:31 +08:00
parent c27cdd71c9
commit 4e0f274498
1 changed files with 2 additions and 2 deletions

View File

@ -142,9 +142,9 @@ class UpdateListFilterCache(apt.Cache):
else: # 判断升级列表
for nv in new_ver:
if nv > pkg.installed and nv != pkg.candidate:
logging.info("adjusting candidate version: %s" % new_ver)
logging.info("adjusting candidate version: %s" % nv)
if _is_adjust == True:
pkg.candidate = new_ver
pkg.candidate = nv
adjust_candidate_pkgs.append(pkg.name+"="+pkg.candidate.version)
break
elif nv > pkg.installed and nv == pkg.candidate: