]> git.saurik.com Git - apt.git/commitdiff
merged from apt-get-download
authorMichael Vogt <michael.vogt@ubuntu.com>
Thu, 18 Nov 2010 13:34:57 +0000 (14:34 +0100)
committerMichael Vogt <michael.vogt@ubuntu.com>
Thu, 18 Nov 2010 13:34:57 +0000 (14:34 +0100)
cmdline/apt-get.cc

index eb3ac425b052d01120b30a8a6823fca64c1392c6..6e1a5280ce2310b148dc233c2c8b235d3d6e4bdb 100644 (file)
@@ -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;
 }