~ubuntu-branches/ubuntu/quantal/aria2/quantal

« back to all changes in this revision

Viewing changes to src/RequestGroup.cc

  • Committer: Package Import Robot
  • Author(s): Kartik Mistry
  • Date: 2011-11-08 20:25:08 UTC
  • mfrom: (2.5.7 sid)
  • Revision ID: package-import@ubuntu.com-20111108202508-scfph8rj6tz0cckk
Tags: 1.13.0-1
* New upstream version:
  + Depends on libgcrypt11 (>= 1.5.0-3) (Closes: #642989)

Show diffs side-by-side

added added

removed removed

Lines of Context:
246
246
#endif // ENABLE_MESSAGE_DIGEST
247
247
        {
248
248
          downloadContext_->setChecksumVerified(true);
249
 
          A2_LOG_NOTICE(fmt(MSG_DOWNLOAD_ALREADY_COMPLETED,
250
 
                            util::itos(gid_).c_str(),
251
 
                            downloadContext_->getBasePath().c_str()));
 
249
          A2_LOG_NOTICE
 
250
            (fmt(MSG_DOWNLOAD_ALREADY_COMPLETED,
 
251
                 util::itos(gid_).c_str(),
 
252
                 downloadContext_->getBasePath().c_str()));
252
253
        }
253
254
    } else {
254
255
      checkEntry.reset(new StreamCheckIntegrityEntry(this));
267
268
#endif // ENABLE_MESSAGE_DIGEST
268
269
      {
269
270
        downloadContext_->setChecksumVerified(true);
270
 
        A2_LOG_NOTICE(fmt(MSG_DOWNLOAD_ALREADY_COMPLETED,
271
 
                          util::itos(gid_).c_str(),
272
 
                          downloadContext_->getBasePath().c_str()));
 
271
        A2_LOG_NOTICE
 
272
          (fmt(MSG_DOWNLOAD_ALREADY_COMPLETED,
 
273
               util::itos(gid_).c_str(),
 
274
               downloadContext_->getBasePath().c_str()));
273
275
      }
274
276
  } else {
275
277
    loadAndOpenFile(infoFile);
772
774
        A2_LOG_NOTICE(fmt(MSG_FILE_RENAMED, getFirstFilePath().c_str()));
773
775
      } else {
774
776
        throw DOWNLOAD_FAILURE_EXCEPTION2
775
 
          (fmt("File renaming failed: %s",
776
 
               getFirstFilePath().c_str()),
 
777
          (fmt("File renaming failed: %s", getFirstFilePath().c_str()),
777
778
           error_code::FILE_RENAMING_FAILED);
778
779
      }
779
780
    } else {
780
781
      throw DOWNLOAD_FAILURE_EXCEPTION2
781
 
        (fmt(MSG_FILE_ALREADY_EXISTS,
782
 
             getFirstFilePath().c_str()),
 
782
        (fmt(MSG_FILE_ALREADY_EXISTS, getFirstFilePath().c_str()),
783
783
         error_code::FILE_ALREADY_EXISTS);
784
784
    }
785
785
  }