summaryrefslogtreecommitdiff
path: root/cmdline
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2010-11-18 14:35:13 +0100
committerMichael Vogt <michael.vogt@ubuntu.com>2010-11-18 14:35:13 +0100
commit772ac84b17c98926046a96ea6042aad99c631aac (patch)
tree35168ec9a87f40d70c552e1c082b19e587cc2c6d /cmdline
parent47bb9aed818abafdb60d9fe917f5973dff7f31e8 (diff)
parent3b1c02f71972d7f0cb7a448f6da52219ab67df81 (diff)
merged from the mvo branch
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 5a3275c15..8754744da 100644
--- a/cmdline/apt-get.cc
+++ b/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;
}