summaryrefslogtreecommitdiff
path: root/apt
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2008-08-05 11:36:13 +0200
committerMichael Vogt <michael.vogt@ubuntu.com>2008-08-05 11:36:13 +0200
commit5204dc7d2975121f529802ec403134502d6d4e45 (patch)
tree964c562361f6f276740d47baf9e247771751e009 /apt
parent91e65ee1efd73fdbf507c2683bc6cc64fee9b37c (diff)
parent1d96f36591c56798021c4e33d01a781507592add (diff)
downloadpython-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.py3
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)