diff options
| -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 ] |
