Fixes #4891 Catch unicodedecode errors from python-apt

This commit is contained in:
James Tanner 2013-11-13 09:48:56 -05:00
parent 6dd81f25d9
commit f332bb0d7c

View file

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