diff --git a/backend/SystemUpdater/Core/filter.py b/backend/SystemUpdater/Core/filter.py index b024d1e..e0fc0ae 100644 --- a/backend/SystemUpdater/Core/filter.py +++ b/backend/SystemUpdater/Core/filter.py @@ -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: