Explorar o código

cmdline/apt-get.cc: and add size as well

Michael Vogt %!s(int64=16) %!d(string=hai) anos
pai
achega
7f7aa6eb32
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      cmdline/apt-get.cc

+ 1 - 1
cmdline/apt-get.cc

@@ -2780,7 +2780,7 @@ bool DoDownload(CommandLine &CmdL)
       else if (rec.MD5Hash() != "")
       else if (rec.MD5Hash() != "")
          hash = HashString("md5", rec.MD5Hash());
          hash = HashString("md5", rec.MD5Hash());
       // get the file
       // 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);
       result &= (Fetcher.Run() == pkgAcquire::Continue);
    }
    }