Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions usr/lib/linuxmint/mintUpdate/checkAPT.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,12 @@ def find_changes(self):

# Package updates
for pkg in changes:
if pkg.candidate is None:
# Installed package has no candidate version (e.g. orphaned
# or removed from the repositories). Skip it so the rest of
# the update list can still be refreshed.
print("Skipping package without candidate version: %s" % pkg.name)
continue
if (pkg.is_installed and pkg.candidate.version != pkg.installed.version):
if (pkg.marked_upgrade or pkg.marked_downgrade):
self.add_update(pkg)
Expand Down