diff --git a/apt_info.py b/apt_info.py index 7f566a7..323d757 100755 --- a/apt_info.py +++ b/apt_info.py @@ -70,7 +70,7 @@ def _write_pending_upgrades(registry, cache): def _write_held_upgrades(registry, cache): held_candidates = { - p.candidate for p in cache + p.candidate for p in cache if p.is_upgradable and p._pkg.selected_state == apt_pkg.SELSTATE_HOLD } upgrade_list = _convert_candidates_to_upgrade_infos(held_candidates)