diff options
| author | Michael Vogt <michael.vogt@ubuntu.com> | 2008-08-05 11:36:13 +0200 |
|---|---|---|
| committer | Michael Vogt <michael.vogt@ubuntu.com> | 2008-08-05 11:36:13 +0200 |
| commit | 5204dc7d2975121f529802ec403134502d6d4e45 (patch) | |
| tree | 964c562361f6f276740d47baf9e247771751e009 /apt | |
| parent | 91e65ee1efd73fdbf507c2683bc6cc64fee9b37c (diff) | |
| parent | 1d96f36591c56798021c4e33d01a781507592add (diff) | |
| download | python-apt-5204dc7d2975121f529802ec403134502d6d4e45.tar.gz | |
* python/cache.cc:
- fix GetCandidateVer() reporting incorrect versions after
SetCandidateVer() was used. Thanks to Julian Andres Klode for
the test-case (LP: #237372)
* python/apt_instmodule.cc:
- do not change working dir in debExtractArchive() (LP: #184093)
* apt/cache.py:
- support "in" in apt.Cache() (LP: #251587)
Diffstat (limited to 'apt')
| -rw-r--r-- | apt/cache.py | 3 |
1 files changed, 3 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) |
