summaryrefslogtreecommitdiff
path: root/apt-pkg/acquire-item.cc
diff options
context:
space:
mode:
authorArch Librarian <arch@canonical.com>2004-09-20 16:53:59 +0000
committerArch Librarian <arch@canonical.com>2004-09-20 16:53:59 +0000
commitaa0e1101d75e6b61d63dc486caa0ab32a45b024f (patch)
tree883395c1302ad82ec50786dd2c5e9f71ddc1980e /apt-pkg/acquire-item.cc
parent314037ba995328f4ac1026bbfb2125af6224248c (diff)
Fixed some bugs in the progress reporting
Author: jgg Date: 1999-06-06 06:58:36 GMT Fixed some bugs in the progress reporting
Diffstat (limited to 'apt-pkg/acquire-item.cc')
-rw-r--r--apt-pkg/acquire-item.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/apt-pkg/acquire-item.cc b/apt-pkg/acquire-item.cc
index 42e9f25ae..5863fcfb4 100644
--- a/apt-pkg/acquire-item.cc
+++ b/apt-pkg/acquire-item.cc
@@ -1,6 +1,6 @@
// -*- mode: cpp; mode: fold -*-
// Description /*{{{*/
-// $Id: acquire-item.cc,v 1.31 1999/06/05 04:33:29 jgg Exp $
+// $Id: acquire-item.cc,v 1.32 1999/06/06 06:58:36 jgg Exp $
/* ######################################################################
Acquire Item - Item to acquire
@@ -97,6 +97,9 @@ void pkgAcquire::Item::Done(string Message,unsigned long Size,string)
if (Owner->Log != 0)
Owner->Log->Fetched(Size,atoi(LookupTag(Message,"Resume-Point","0").c_str()));
}
+
+ if (FileSize == 0)
+ FileSize= Size;
Status = StatDone;
ErrorText = string();