Fixes #4891 Catch unicodedecode errors from python-apt

reviewable/pr18780/r1
James Tanner 11 years ago
parent 53ba890312
commit db163d51ba

@ -174,6 +174,8 @@ def package_status(m, pkgname, version, cache, state):
return False, False, False return False, False, False
try: try:
has_files = len(pkg.installed_files) > 0 has_files = len(pkg.installed_files) > 0
except UnicodeDecodeError:
has_files = True
except AttributeError: except AttributeError:
has_files = False # older python-apt cannot be used to determine non-purged has_files = False # older python-apt cannot be used to determine non-purged

Loading…
Cancel
Save