diff options
| author | Julian Andres Klode <jak@jak-laptop> | 2009-11-07 18:58:02 +0100 |
|---|---|---|
| committer | Julian Andres Klode <jak@jak-laptop> | 2009-11-07 18:58:02 +0100 |
| commit | 34d3e8ac912084adeb2609ef1ff9c3870a5fc947 (patch) | |
| tree | 2d7ea4fcb252eb0b9a81cb60b674585fd5d446f3 | |
| parent | be85eeaeadf8b93021413ab7ed79e639b65102a6 (diff) | |
| download | python-apt-34d3e8ac912084adeb2609ef1ff9c3870a5fc947.tar.gz | |
apt/package.py: Fix dictionary access of VersionList, patch
by Sebastian Heinlein (Closes: #554895).
| -rw-r--r-- | apt/package.py | 4 | ||||
| -rw-r--r-- | debian/changelog | 7 |
2 files changed, 9 insertions, 2 deletions
diff --git a/apt/package.py b/apt/package.py index 6a85d2b5..8d3be1b0 100644 --- a/apt/package.py +++ b/apt/package.py @@ -551,7 +551,7 @@ class VersionList(Sequence): except TypeError: # Dictionary interface item is a string. for ver in self._versions: - if ver.ver_str == item: + if ver.VerStr == item: return Version(self._package, ver) raise KeyError("Version: %r not found." % (item)) @@ -567,7 +567,7 @@ class VersionList(Sequence): item = item.version # Dictionary interface. for ver in self._versions: - if ver.ver_str == item: + if ver.VerStr == item: return True return False diff --git a/debian/changelog b/debian/changelog index e22014a3..4fbf6be1 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +python-apt (0.7.13.4) unstable; urgency=low + + * apt/package.py: Fix dictionary access of VersionList, patch + by Sebastian Heinlein (Closes: #554895). + + -- Julian Andres Klode <jak@debian.org> Sat, 07 Nov 2009 18:56:37 +0100 + python-apt (0.7.13.3) unstable; urgency=low [ Michael Vogt ] |
