summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apt/package.py7
-rw-r--r--debian/changelog4
2 files changed, 7 insertions, 4 deletions
diff --git a/apt/package.py b/apt/package.py
index 27e0dc90..6a85d2b5 100644
--- a/apt/package.py
+++ b/apt/package.py
@@ -478,10 +478,11 @@ class Version(object):
acq = apt_pkg.GetAcquire(progress or apt.progress.TextFetchProgress())
dsc = None
- src.Lookup(self.package.name)
+ record = self._records
+ src.Lookup(record.SourcePkg)
try:
- while self.version != src.Version:
- src.Lookup(self.package.name)
+ while record.SourceVer != src.Version:
+ src.Lookup(record.SourcePkg)
except AttributeError:
raise ValueError("No source for %r" % self)
for md5, size, path, type in src.Files:
diff --git a/debian/changelog b/debian/changelog
index bfba50e0..6babe14c 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -12,8 +12,10 @@ python-apt (0.7.13.3) UNRELEASED; urgency=low
* python/depcache.cc:
- Make ActionGroups context managers so apt.Cache.actiongroup() has
the same behavior as in 0.7.92
+ * apt/package.py:
+ - Use the source version instead of the binary version in fetch_source().
- -- Julian Andres Klode <jak@debian.org> Mon, 24 Aug 2009 15:43:00 +0200
+ -- Julian Andres Klode <jak@debian.org> Fri, 28 Aug 2009 14:38:06 +0200
python-apt (0.7.13.2) unstable; urgency=low