diff options
| -rw-r--r-- | apt/package.py | 3 | ||||
| -rw-r--r-- | debian/changelog | 2 |
2 files changed, 4 insertions, 1 deletions
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. |
