cmdline/apt-get.cc: and add size as well
authorMichael Vogt <michael.vogt@ubuntu.com>
Mon, 15 Nov 2010 15:38:07 +0000 (16:38 +0100)
committerMichael Vogt <michael.vogt@ubuntu.com>
Mon, 15 Nov 2010 15:38:07 +0000 (16:38 +0100)
cmdline/apt-get.cc

index 4e96bc6..febcab1 100644 (file)
@@ -2780,7 +2780,7 @@ bool DoDownload(CommandLine &CmdL)
       else if (rec.MD5Hash() != "")
          hash = HashString("md5", rec.MD5Hash());
       // get the file
-      new pkgAcqFile(&Fetcher, uri, hash.toStr(), 0, descr, Pkg.Name(), ".");
+      new pkgAcqFile(&Fetcher, uri, hash.toStr(), (*Ver)->Size, descr, Pkg.Name(), ".");
       result &= (Fetcher.Run() == pkgAcquire::Continue);
    }