修改列表
This commit is contained in:
parent
c27cdd71c9
commit
4e0f274498
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue