diff options
| author | Michael Vogt <michael.vogt@ubuntu.com> | 2012-03-28 10:19:51 +0200 |
|---|---|---|
| committer | Michael Vogt <michael.vogt@ubuntu.com> | 2012-03-28 10:19:51 +0200 |
| commit | 23d4a5fc9ca8dc7a35fd96a48dcb261ac0daf46b (patch) | |
| tree | 1e392c650edb96e0b0c730ff5daf74180f02ddc1 | |
| parent | da171aa93337802c19d8caa99a4ab8516bdbc5bd (diff) | |
| download | python-apt-23d4a5fc9ca8dc7a35fd96a48dcb261ac0daf46b.tar.gz | |
* apt/cache.py:
- fix _have_multi_arch flag (thanks to Sebastian Heinlein)
| -rw-r--r-- | apt/cache.py | 3 | ||||
| -rw-r--r-- | debian/changelog | 2 |
2 files changed, 3 insertions, 2 deletions
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 diff --git a/debian/changelog b/debian/changelog index b1bf28d6..a163f03a 100644 --- a/debian/changelog +++ b/debian/changelog @@ -15,6 +15,8 @@ python-apt (0.8.4) UNRELEASED; urgency=low to the file object currently supported) * apt/package.py: - if there is no Version.uri return None + * apt/cache.py: + - fix _have_multi_arch flag (thanks to Sebastian Heinlein) -- Michael Vogt <michael.vogt@ubuntu.com> Wed, 04 Jan 2012 12:07:48 +0100 |
