]> git.saurik.com Git - apt.git/commitdiff
* fix in the log class to avoid absurdely big downloads
authorMichael Vogt <michael.vogt@ubuntu.com>
Sun, 2 Apr 2006 11:02:02 +0000 (13:02 +0200)
committerMichael Vogt <michael.vogt@ubuntu.com>
Sun, 2 Apr 2006 11:02:02 +0000 (13:02 +0200)
apt-pkg/acquire-item.cc

index 38977d2b1cc76f1b603d4952a5e5bbbdb8d3eb38..a29063e1a78ccefda3a13c39348f59870547d9f9 100644 (file)
@@ -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()));