From db163d51ba2c5fa2f3624e5f2f896eaf47525f5f Mon Sep 17 00:00:00 2001 From: James Tanner Date: Wed, 13 Nov 2013 09:48:56 -0500 Subject: [PATCH] Fixes #4891 Catch unicodedecode errors from python-apt --- packaging/apt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packaging/apt b/packaging/apt index 5173ce60c75..403ce0ea960 100644 --- a/packaging/apt +++ b/packaging/apt @@ -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