From a5f0b3a05f85e5c24d0cbc6f5cfd3834346e79aa Mon Sep 17 00:00:00 2001 From: Julian Andres Klode Date: Wed, 3 Mar 2010 14:33:03 +0100 Subject: Use the binary package version in Version.fetch_source() if the source version is not specified (i.e. in the normal case). --- apt/package.py | 3 ++- debian/changelog | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/apt/package.py b/apt/package.py index 6bf9554b..7c739aab 100644 --- a/apt/package.py +++ b/apt/package.py @@ -537,9 +537,10 @@ class Version(object): dsc = None record = self._records src.lookup(record.source_pkg) + source_version = record.source_ver or self._cand.ver_str try: - while record.source_ver != src.version: + while source_version != src.version: src.lookup(record.source_pkg) except AttributeError: raise ValueError("No source for %r" % self) diff --git a/debian/changelog b/debian/changelog index 1c1575a0..30a1182a 100644 --- a/debian/changelog +++ b/debian/changelog @@ -5,6 +5,8 @@ python-apt (0.7.93.4) unstable; urgency=low * apt/package.py: - Create a string class BaseDependency.__dstr which makes '>' equal to '>>' and '<' equal to '<<' (compatibility). + - Use the binary package version in Version.fetch_source() if the + source version is not specified (i.e. in the normal case). * apt/progress/text.py: - Drop InstallProgress, it's useless to keep this alias around. -- cgit v1.2.3