diff options
author | Michael Vogt <michael.vogt@ubuntu.com> | 2006-04-02 13:02:02 +0200 |
---|---|---|
committer | Michael Vogt <michael.vogt@ubuntu.com> | 2006-04-02 13:02:02 +0200 |
commit | 8f30ca302e4235985982a0f2b1e83dfe977ed12c (patch) | |
tree | c17343999ae1315e9724375a2d8605571337c918 /apt-pkg/acquire-item.cc | |
parent | 81fcf9e22b9f93896ceb644c9341d9d53da9c790 (diff) |
* fix in the log class to avoid absurdely big downloads
Diffstat (limited to 'apt-pkg/acquire-item.cc')
-rw-r--r-- | apt-pkg/acquire-item.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apt-pkg/acquire-item.cc b/apt-pkg/acquire-item.cc index 38977d2b1..a29063e1a 100644 --- a/apt-pkg/acquire-item.cc +++ b/apt-pkg/acquire-item.cc @@ -103,7 +103,8 @@ void pkgAcquire::Item::Done(string Message,unsigned long Size,string, { // We just downloaded something.. string FileName = LookupTag(Message,"Filename"); - if (Complete == false && FileName == DestFile) + // we only inform the Log class if it was actually not a local thing + if (Complete == false && !Local && FileName == DestFile) { if (Owner->Log != 0) Owner->Log->Fetched(Size,atoi(LookupTag(Message,"Resume-Point","0").c_str())); |