Przeglądaj źródła

merged from apt-get-download

Michael Vogt 15 lat temu
rodzic
commit
3b1c02f719
1 zmienionych plików z 1 dodań i 2 usunięć
  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)
    if (verset.empty() == true)
       return false;
       return false;
 
 
-   bool result = true;
    pkgRecords Recs(Cache);
    pkgRecords Recs(Cache);
    pkgSourceList *SrcList = Cache.GetSourceList();
    pkgSourceList *SrcList = Cache.GetSourceList();
    for (APT::VersionSet::const_iterator Ver = verset.begin(); 
    for (APT::VersionSet::const_iterator Ver = verset.begin(); 
@@ -2213,8 +2212,8 @@ bool DoDownload(CommandLine &CmdL)
          hash = HashString("md5", rec.MD5Hash());
          hash = HashString("md5", rec.MD5Hash());
       // get the file
       // get the file
       new pkgAcqFile(&Fetcher, uri, hash.toStr(), (*Ver)->Size, descr, Pkg.Name(), ".");
       new pkgAcqFile(&Fetcher, uri, hash.toStr(), (*Ver)->Size, descr, Pkg.Name(), ".");
-      result &= (Fetcher.Run() == pkgAcquire::Continue);
    }
    }
+   bool result = (Fetcher.Run() == pkgAcquire::Continue);
 
 
    return result;
    return result;
 }
 }