summaryrefslogtreecommitdiff
path: root/cmdline
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2010-11-18 14:32:44 +0100
committerMichael Vogt <michael.vogt@ubuntu.com>2010-11-18 14:32:44 +0100
commit6c6b2a3221f0a9432efd0080074b17c4e9d6a6ec (patch)
tree34c978c81a23bd079607efc054a3905a30277f5b /cmdline
parent6f976e5dd7ccc27d48b6a000fed0c553bd017d34 (diff)
cmdline/apt-get.cc: download it all in one go
Diffstat (limited to 'cmdline')
-rw-r--r--cmdline/apt-get.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/cmdline/apt-get.cc b/cmdline/apt-get.cc
index febcab18c..a1a1b586d 100644
--- a/cmdline/apt-get.cc
+++ b/cmdline/apt-get.cc
@@ -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;
}