]> git.saurik.com Git - apt.git/commitdiff
cmdline/apt-get.cc: download it all in one go
authorMichael Vogt <michael.vogt@ubuntu.com>
Thu, 18 Nov 2010 13:32:44 +0000 (14:32 +0100)
committerMichael Vogt <michael.vogt@ubuntu.com>
Thu, 18 Nov 2010 13:32:44 +0000 (14:32 +0100)
cmdline/apt-get.cc

index febcab18c5e6fbd624d5a99dc982ce003c30975e..a1a1b586d1ddb5c4bc91459608dbeb253b49816a 100644 (file)
@@ -2751,7 +2751,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(); 
@@ -2781,8 +2780,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;
 }