소스 검색

2007-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>

	* src/Xml2MetalinkProcessor.cc (getPieceHash): Added missing 
.c_str().
Tatsuhiro Tsujikawa 18 년 전
부모
커밋
674a077bff
3개의 변경된 파일10개의 추가작업 그리고 1개의 파일을 삭제
  1. 4 0
      ChangeLog
  2. 5 0
      TODO
  3. 1 1
      src/Xml2MetalinkProcessor.cc

+ 4 - 0
ChangeLog

@@ -1,3 +1,7 @@
+2007-08-24  Tatsuhiro Tsujikawa  <tujikawa at rednoah dot com>
+
+	* src/Xml2MetalinkProcessor.cc (getPieceHash): Added missing .c_str().
+
 2007-08-18  Tatsuhiro Tsujikawa  <tujikawa at rednoah dot com>
 
 	Avoid sparse files if possible, because VFAT32 doesn't support it.

+ 5 - 0
TODO

@@ -38,3 +38,8 @@
 * time related headers and compatible macros and definition -> a2time.h
 * used globally -> common.h
 
+* Rewrite MetaFileUtil
+* Add parameterized URI support
+* Add pgp verification support. I have to use libgpgme??
+* Add outfile auto renaming
+* Disable segmented download in .metalink

+ 1 - 1
src/Xml2MetalinkProcessor.cc

@@ -187,7 +187,7 @@ ChunkChecksumHandle Xml2MetalinkProcessor::getPieceHash(const string& xpath,
   for(uint64_t i = 0; i < numPiece; ++i) {
     string pieceHash = Util::trim(xpathContent(xpath+"/m:hash[@piece=\""+Util::ullitos(i)+"\"]"));
     if(pieceHash == "") {
-      throw new DlAbortEx("Piece hash missing. index=%s", Util::ullitos(i));
+      throw new DlAbortEx("Piece hash missing. index=%s", Util::ullitos(i).c_str());
     }
     checksums.push_back(pieceHash);
   }