Explorar el Código

merged from apt-get-download

Michael Vogt hace 15 años
padre
commit
3b1c02f719
Se han modificado 1 ficheros con 1 adiciones y 2 borrados
  1. 1 2
      cmdline/apt-get.cc

+ 1 - 2
cmdline/apt-get.cc

@@ -2183,7 +2183,6 @@ bool DoDownload(CommandLine &CmdL)
    if (verset.empty() == true)
       return false;
 
-   bool result = true;
    pkgRecords Recs(Cache);
    pkgSourceList *SrcList = Cache.GetSourceList();
    for (APT::VersionSet::const_iterator Ver = verset.begin(); 
@@ -2213,8 +2212,8 @@ bool DoDownload(CommandLine &CmdL)
          hash = HashString("md5", rec.MD5Hash());
       // get the file
       new pkgAcqFile(&Fetcher, uri, hash.toStr(), (*Ver)->Size, descr, Pkg.Name(), ".");
-      result &= (Fetcher.Run() == pkgAcquire::Continue);
    }
+   bool result = (Fetcher.Run() == pkgAcquire::Continue);
 
    return result;
 }