From 23d4a5fc9ca8dc7a35fd96a48dcb261ac0daf46b Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Wed, 28 Mar 2012 10:19:51 +0200 Subject: * apt/cache.py: - fix _have_multi_arch flag (thanks to Sebastian Heinlein) --- apt/cache.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'apt/cache.py') diff --git a/apt/cache.py b/apt/cache.py index 96b38a57..86a788bb 100644 --- a/apt/cache.py +++ b/apt/cache.py @@ -152,8 +152,7 @@ class Cache(object): self._sorted_set = None self._weakref.clear() - self._have_multi_arch = bool(apt_pkg.config.value_list("APT::" + - "Architectures")) + self._have_multi_arch = len(apt_pkg.get_architectures()) > 1 progress.op = _("Building data structures") i = last = 0 -- cgit v1.2.3