diff options
author | Michael Vogt <mvo@debian.org> | 2014-01-31 08:23:23 +0100 |
---|---|---|
committer | Michael Vogt <mvo@debian.org> | 2014-01-31 08:23:23 +0100 |
commit | bb2e0d5add4a291f09d68ebb5588e45dc128d766 (patch) | |
tree | 7f4b41204f42eaf6c408fdf98597f61debd28a4a /apt-pkg/tagfile.cc | |
parent | 960975a175c2a21df749727162d5677cdc97a36e (diff) | |
parent | 25d99f3b42ada24679ddc1d911530425acc8e475 (diff) |
Merge remote-tracking branch 'donkult/debian/sid' into debian/sid
Diffstat (limited to 'apt-pkg/tagfile.cc')
-rw-r--r-- | apt-pkg/tagfile.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/apt-pkg/tagfile.cc b/apt-pkg/tagfile.cc index b92b2c15a..832a40d1e 100644 --- a/apt-pkg/tagfile.cc +++ b/apt-pkg/tagfile.cc @@ -207,7 +207,11 @@ bool pkgTagFile::Jump(pkgTagSection &Tag,unsigned long long Offset) unsigned long long Dist = Offset - d->iOffset; d->Start += Dist; d->iOffset += Dist; - return Step(Tag); + // if we have seen the end, don't ask for more + if (d->Done == true) + return Tag.Scan(d->Start, d->End - d->Start); + else + return Step(Tag); } // Reposition and reload.. |