diff options
| -rw-r--r-- | apt/cache.py | 3 | ||||
| -rw-r--r-- | debian/changelog | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/apt/cache.py b/apt/cache.py index 384afe31..bbf2165b 100644 --- a/apt/cache.py +++ b/apt/cache.py @@ -101,6 +101,9 @@ class Cache(object): def has_key(self, key): return self._dict.has_key(key) + def __contains__(self, key): + return key in self._dict + def __len__(self): return len(self._dict) diff --git a/debian/changelog b/debian/changelog index 7bc2630e..86e5b0c9 100644 --- a/debian/changelog +++ b/debian/changelog @@ -2,6 +2,8 @@ python-apt (0.7.7.2) UNRELEASED; urgency=low * python/cache.cc: - fix crash if Ver.PriorityType() returns NULL + * apt/cache.py: + - support "in" in apt.Cache() (LP: #251587) -- Michael Vogt <michael.vogt@ubuntu.com> Wed, 30 Jul 2008 10:24:30 +0200 |
