Преглед изворни кода

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

Michael Vogt пре 15 година
родитељ
комит
7f7aa6eb32
1 измењених фајлова са 1 додато и 1 уклоњено
  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);
    }
    }