diff options
author | Michael Vogt <michael.vogt@ubuntu.com> | 2010-11-18 14:34:57 +0100 |
---|---|---|
committer | Michael Vogt <michael.vogt@ubuntu.com> | 2010-11-18 14:34:57 +0100 |
commit | 3b1c02f71972d7f0cb7a448f6da52219ab67df81 (patch) | |
tree | af49fb942a2852018c3effa8f6f833727ba19137 /cmdline | |
parent | d950349bcb3d5972f81b75f304878c33e9187fc8 (diff) | |
parent | 6c6b2a3221f0a9432efd0080074b17c4e9d6a6ec (diff) |
merged from apt-get-download
Diffstat (limited to 'cmdline')
-rw-r--r-- | cmdline/apt-get.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/cmdline/apt-get.cc b/cmdline/apt-get.cc index eb3ac425b..6e1a5280c 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; } |